-
Notifications
You must be signed in to change notification settings - Fork 213
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
Multivariate T #26
Multivariate T #26
Conversation
setup.py
Outdated
packages = ['bayesian_changepoint_detection'], | ||
requires=['scipy', 'numpy'] | ||
) | ||
setup( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
test.py
Outdated
partial(offline.const_prior, l=(len(dataset) + 1)), | ||
online.MultivariateT(10) | ||
) | ||
# TODO: assertion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One possibility: just do a snapshot test here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what you mean by this. Still, I've added an assertion based on #18 (comment)
…tection into multivariate
Oops, a colleague just pointed out a huge flaw in my implementation. I'm putting this back to draft while I fix it. |
dof = dims + 1 | ||
# The default mean is all 0s | ||
if mu is None: | ||
mu = [0]*dims |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: spaces around *
pip install bayesian_changepoint_detection[dev]
for development work (currently this installs pytest), orpip install bayesian_changepoint_detection[multivariate]
(enforces that you have a new enough scipy version for this new feature)