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

Enable restricted sweep in the prototype sampling interface #74

Open
andrewherren opened this issue Aug 9, 2024 · 0 comments
Open

Enable restricted sweep in the prototype sampling interface #74

andrewherren opened this issue Aug 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@andrewherren
Copy link
Collaborator

Description

Allow updates to a user-specified subset of trees at any given iteration of the low-level / prototype interface (as documented here)

Ideas for Implementation / Expected Behavior

Adding a trees_to_update (or similarly named) parameter to the sample_one_iteration() method of the ForestModel class in R, so that

forest_model$sample_one_iteration(
    forest_dataset, outcome, forest_samples, rng, feature_types, 
    outcome_model_type, leaf_prior_scale, var_weights, 
    global_var_samples[i], cutpoint_grid_size, gfr = T, 
    trees_to_update = c(1,3,10)
)

updates only the first, third, and 10th trees in the forest during the i-th iteration of a custom sampler.

@andrewherren andrewherren added the enhancement New feature or request label Aug 9, 2024
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