Skip to content

Allow updates to the outcome/partial resid before sample_one_iteration from R/Python interface #87

@jaredsmurray

Description

@jaredsmurray

Description

Allow updates to the outcome in/before sample_one_iteration from R/Python interface

Ideas for Implementation / Expected Behavior

In the simples case we want to fit y = w'\beta + f(x) + eps; the relevant guts of the MCMC loop would be something like

beta = sample_beta(...)

forest_dataset$update_outcome(y - W%*%beta)

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
)

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

    Issue actions