Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add repopulate_leaves functionality #81

Open
erikcs opened this issue Mar 7, 2021 · 0 comments
Open

Add repopulate_leaves functionality #81

erikcs opened this issue Mar 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@erikcs
Copy link
Member

erikcs commented Mar 7, 2021

All the theory references for policytree are for adaptive trees, but some users may want to construct "honest" trees by fitting in one sample, then repopulating with the argmax in a new sample, like tree.new <- repopulate_leaves(tree.old. X, Y). This is fairly straight forward to implement in R (predict region with type="node.id", select argmax, then replace action ids in the internal tree data structure stored in the R object. We would not take pruning into account here though).

Leaving as an issue for now, awaiting feedback on potential interest, as @halflearned already has a separate Python solution working for his use case.

@erikcs erikcs added the enhancement New feature or request label Mar 7, 2021
@erikcs erikcs changed the title Add repopulation_leaves functionality Add repopulate_leaves functionality Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant