-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rugby Analytics commit #764
Conversation
Cool! Thanks :) A few comments. You don't need the first Also, you don't seem to be using
|
The demeaning was necessary when reproducing the paper. It might be just a On Wednesday, 17 June 2015, John Salvatier notifications@github.com wrote:
Peadar Coyle |
The away theta should be used but maybe I deleted it. I will look tomorrow On Wednesday, 17 June 2015, Peadar Coyle peadarcoyle@googlemail.com wrote:
Peadar Coyle |
Ah, gotcha, its reproducing a paper. That makes a lot of sense. Maybe add a On Wed, Jun 17, 2015 at 2:46 PM, springcoil notifications@github.com
|
I will add a comment. I will flesh it out :) On Wednesday, 17 June 2015, John Salvatier notifications@github.com wrote:
Peadar Coyle |
I know this is still on me, but I've been busy lately. I'll get back to it soon |
I made some updates based on what you said John. I think it should be ready to be merged soon. Let me know if you need any other documentation. |
It passed the checks and the documentation is ready. Can someone like @jsalvatier or @twiecki merge this? |
Thanks! Isn't there more description in PP for hackers or a blog post we could include here? Would make the example much stronger. |
Hey Thomas, I agree the example could be made much stronger ᐧ On Fri, Aug 14, 2015 at 8:30 AM, Thomas Wiecki notifications@github.com
Peadar Coyle |
We probably don't even need the .py file, just the ipython NB which we could then convert to a .py. |
Fix critical bug for elementwise transforms where summing was done incorrectly.
slight update 2
I updated the IPython notebook, I thought I correctly used rebase, |
Fix typos in backend documentation re parallelize tests move deps back where they belong fix parallel tests typo upgrade to pymc3 Beta! add link for NUTS commas set transparency for histograms make transforms classes typo add basic transform tests actually basic test transforms categorical foolings improvements for simplex, but still broken test and fix simplex jacobian fix logtransform test all jacobians check transforms are going the right way fix categorical rename transforms test and fix sum_to_1 fix unit continuous try docker builds remove sudo Revert "remove sudo" This reverts commit f2ce835. Revert "try docker builds" This reverts commit b4d43ad. added some docstrings don't import nonexistant things Combine chains by default Make all methods for accessing variable values concatenate chains by default, because this is likely to be the desired output most of the time. See #758 and #759. Simplify single-trace __getitem__ method The get_values fallback in the single-trace __getitem__ method was present mostly as leftover code from a previous design. MultiTrace is the only user-facing trace object, so there is not much benefit of letting __getitem__ fall back to get_values for convenience. Allow trace variable values to be sliced Extend indexing of trace objects to support an additional slice object that specifies the burn and thin arguments of get_values: >>> trace[x, start::step] Above differs from >>> trace[x][start::step] because the second form operates on an array that is the combination of all chains. BaseTrace: Remove chain keyword argument to point This is stale code. The current BaseTrace only deals with a for a chain argument in the point method. The point method signatures in the children classes are already correct. MultiTrace: Rework docstring * Add more information about getting variable values. * Remove parameter information, which isn't relevant because users get back an initialized instance from sampling. backends/base.py: Fix docstring typo Differentiate names for single-chain traces Previously, the variable name "trace" was confusingly used to refer to both BaseTrace instances and MultiTrace instances, making readers infer which type it was from context. Change code to use the following conventions: * Use "strace" for variable names of BaseTrace instances to indicate a single-chain trace (where "single-chain" trace refers to an object derived from BaseTrace, but not a MultiTrace object with only one chain). * MultiTrace instances are called either "mtrace" or "trace". All changes in this commit are purely variable renames and are not user-facing. Added alpha as an argument to traceplot NDArray: Rename variable Rename variable to make it clear that it refers to values for a single model variable rather than a trace object. #771 (comment) Remove gridspec import check Commit 3c3273d added a check on the gridspec import to support older versions of matplotlib. However, the minimum version that is now specified (1.2.1) has gridspec, so this check is no longer needed. combine leapfrog and energy computations combine metropolis density comparison cleanup things revert some unintentional changes avoid infinite recursion actually fix arraystep work with tensors too shapes have to be ints fix lkjcorr distribution fastarraystep->arraystepshared DOC Remove comment about TransformedVar in stoch vol example. Removed TransformedVar from profiling example Added standard normal cdf Added ExGaussian distribution and (rubbish) tests Added 2-parameter Inverse Gaussian distribution Added 3-parameter shifted inverse gaussian. Fix for phi parametrization in the inverse gaussian Added newline at end of file. Improved handling of alternative parametrization for inverse gaussian. Added mean attribute to inverse gaussian. Added switch to ExGaussian logp and missing self to method random. Moved inverse gaussian stuff (and tests) to Wald. Added condition to bound function in Wald logp Fixed Wald logp Fixed typos and removed whitespace Remove unnecssary size checks from Wald/exGaussian random Added disc_vars property to complement cont_vars. Might be useful for assigning discretes to a Metropolis sampler, for example. MultiTrace: Check output before returning slice Out-of-memory backends give a warning when the user tries to slice them, so the result may be a list of Nones. re: #790 Support slicing in SQlite and Text backends Return a NDArray slice instead of warning when an out-of-memory backend is sliced. Fixes #790 ENH Add example of a Gaussian Mixture Model. Add author fix inappropriate summing fix test for elemwise transform jacobian dets remove debug statement
Anyone have any idea why this build is failing? |
But also, something seems to have gone wrong with the rebase.
|
Opening a new branch :) |
Second commit removed get_ipython Update of the ipython notebook with more information I added a slight update to include more tutorial material slight update 2 Use Text as the example backend in docstring Fix typos in backend documentation re parallelize tests move deps back where they belong fix parallel tests typo upgrade to pymc3 Beta! add link for NUTS commas set transparency for histograms make transforms classes typo add basic transform tests actually basic test transforms categorical foolings improvements for simplex, but still broken test and fix simplex jacobian fix logtransform test all jacobians check transforms are going the right way fix categorical rename transforms test and fix sum_to_1 fix unit continuous try docker builds remove sudo Revert "remove sudo" This reverts commit f2ce835. Revert "try docker builds" This reverts commit b4d43ad. added some docstrings don't import nonexistant things Combine chains by default Make all methods for accessing variable values concatenate chains by default, because this is likely to be the desired output most of the time. See #758 and #759. Simplify single-trace __getitem__ method The get_values fallback in the single-trace __getitem__ method was present mostly as leftover code from a previous design. MultiTrace is the only user-facing trace object, so there is not much benefit of letting __getitem__ fall back to get_values for convenience. Allow trace variable values to be sliced Extend indexing of trace objects to support an additional slice object that specifies the burn and thin arguments of get_values: >>> trace[x, start::step] Above differs from >>> trace[x][start::step] because the second form operates on an array that is the combination of all chains. BaseTrace: Remove chain keyword argument to point This is stale code. The current BaseTrace only deals with a for a chain argument in the point method. The point method signatures in the children classes are already correct. MultiTrace: Rework docstring * Add more information about getting variable values. * Remove parameter information, which isn't relevant because users get back an initialized instance from sampling. backends/base.py: Fix docstring typo Differentiate names for single-chain traces Previously, the variable name "trace" was confusingly used to refer to both BaseTrace instances and MultiTrace instances, making readers infer which type it was from context. Change code to use the following conventions: * Use "strace" for variable names of BaseTrace instances to indicate a single-chain trace (where "single-chain" trace refers to an object derived from BaseTrace, but not a MultiTrace object with only one chain). * MultiTrace instances are called either "mtrace" or "trace". All changes in this commit are purely variable renames and are not user-facing. Added alpha as an argument to traceplot NDArray: Rename variable Rename variable to make it clear that it refers to values for a single model variable rather than a trace object. #771 (comment) Remove gridspec import check Commit 3c3273d added a check on the gridspec import to support older versions of matplotlib. However, the minimum version that is now specified (1.2.1) has gridspec, so this check is no longer needed. combine leapfrog and energy computations combine metropolis density comparison cleanup things revert some unintentional changes avoid infinite recursion actually fix arraystep work with tensors too shapes have to be ints fix lkjcorr distribution fastarraystep->arraystepshared DOC Remove comment about TransformedVar in stoch vol example. Removed TransformedVar from profiling example Added standard normal cdf Added ExGaussian distribution and (rubbish) tests Added 2-parameter Inverse Gaussian distribution Added 3-parameter shifted inverse gaussian. Fix for phi parametrization in the inverse gaussian Added newline at end of file. Improved handling of alternative parametrization for inverse gaussian. Added mean attribute to inverse gaussian. Added switch to ExGaussian logp and missing self to method random. Moved inverse gaussian stuff (and tests) to Wald. Added condition to bound function in Wald logp Fixed Wald logp Fixed typos and removed whitespace Remove unnecssary size checks from Wald/exGaussian random Added disc_vars property to complement cont_vars. Might be useful for assigning discretes to a Metropolis sampler, for example. MultiTrace: Check output before returning slice Out-of-memory backends give a warning when the user tries to slice them, so the result may be a list of Nones. re: #790 Support slicing in SQlite and Text backends Return a NDArray slice instead of warning when an out-of-memory backend is sliced. Fixes #790 ENH Add example of a Gaussian Mixture Model. Add author fix inappropriate summing fix test for elemwise transform jacobian dets remove debug statement readme update' ' update readme.md
This is a lot of commits - can anyone advise me on how to properly rebase this? |
Hmm I tried rebasing etc and it didn't work... |
It seems like things got into a pretty messy state. I've pushed what (I So I'd suggest you
|
Doh, please look under the folded text for my last comment. GitHub thinks the rest of my email is my signature. |
Second rugby analytics commit