Skip to content

Add repopulate_leaves functionality #81

@erikcs

Description

@erikcs
Member

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.

Activity

changed the title [-]Add `repopulation_leaves` functionality[/-] [+]Add `repopulate_leaves` functionality[/+] on Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @erikcs

        Issue actions

          Add `repopulate_leaves` functionality · Issue #81 · grf-labs/policytree