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

Allow faster predict methods. #31

Merged
merged 3 commits into from
Jul 6, 2018

Conversation

akleeman
Copy link
Collaborator

@akleeman akleeman commented Jul 2, 2018

The existing model interface provided a predict method which returned an entire distribution (mean, and dense covariance). Sometimes however you may only need the mean, or the marginal variance in which case computing the entire posterior covariance, then only throwing it away (or only taking the diagonal) is a waste of computation time.

This change provides a new set of methods to the RegressionModel<> which let you explicitly ask for only the marginal posterior distribution predict_marginal or the posterior mean predict_mean.

@akleeman akleeman force-pushed the add_predict_variants branch 2 times, most recently from ccb66a0 to 0c586d1 Compare July 3, 2018 18:37
akleeman added 2 commits July 3, 2018 12:00
or only the diagonal variance which can often be done much
faster.
favor of more descriptive JointDistribution and MarginalDistribution.
@akleeman akleeman force-pushed the add_predict_variants branch from 0c586d1 to 9f9c9ad Compare July 3, 2018 19:00
@akleeman akleeman force-pushed the add_predict_variants branch from 9f9c9ad to 77d8b6a Compare July 3, 2018 19:19
Copy link
Contributor

@seth-swiftnav seth-swiftnav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants