Skip to content

Make prediction methods more flexible #197

@andrewherren

Description

@andrewherren

Right now predict.bartmodel and predict.bcfmodel in R, and the predict() methods in Python return a list / dictionary of posterior predictions for each model term.

Since a common workflow is to extract the posterior mean prediction for either $\hat{y}$ in BART or $\hat{\tau}$ in BCF, we might consider rewriting these prediction routines to allow a type = 'mean' style argument that avoids making users extract the posterior matrix for a given model term and then take its row-wise average.

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