-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
stats/finance -- add support for hidden markov models to sage #3726
Comments
Attachment: sage-3726-part1.patch.gz |
Attachment: sage-3726-part2.patch.gz |
Attachment: sage-3726-part3.patch.gz |
Attachment: sage-3726-part4.patch.gz |
Attachment: sage-3726-part5.patch.gz Attachment: sage-3726-part6.patch.gz |
This comment has been minimized.
This comment has been minimized.
comment:1
Attachment: sage-3726-part7.patch.gz The attached patches bring the coverage of this code to 100% and cleanly wrap a solid set of functionality. |
This comment has been minimized.
This comment has been minimized.
Attachment: sage-3726-part8.patch.gz |
Attachment: sage-3726-part9.patch.gz patches 1 - 8 in a clean bundle against 3.0.5 |
This comment has been minimized.
This comment has been minimized.
comment:3
Attachment: hmm-bundle-3.0.5.hg.gz |
comment:4
Code quality is of course excellent and of course positive review but Actual Bugs
Miscellaneous comments
|
comment:5
I have no idea what it will do :-). I will find out by looking at the GHMM docs. I'm not sure what the best behavior would be on invalid input yet.
You're right, this is a bug. It does take multiple sequences but only like this with a weight:
It should also work with no weights. DiscreteMarkovModels in this patch don't take single sequences (only multiple), but I fixed that in #3773 (I think).
Thanks for finding this. I consider this a serious problem and will fix it.
I'm annoyed by not having it since foo.sample(n) returns something like [[1,2,5,3]] so one ends up typing foo.sample(n)[0] a lot, which seems odd. Wait, this is easy. Do this:
Yes. This will not go in standard until the spkg is officially voted on in sage-devel. |
comment:6
|
comment:7
The latest spkg seems to be http://sage.math.washington.edu/home/was/patches/ghmm-20080813.spkg Cheers, Michael |
comment:8
Merged hmm-bundle-3.0.5.hg in Sage 3.1.2.alpha0. This bundle contains 12 changesets, so there are some patches missing in the broken out series. Oh well ... Cheers, Michael |
The spkg:
http://sage.math.washington.edu/home/was/patches/ghmm-20080803.spkg
builds ghmm and doesn't depend on anything not in sage (I hope). It does not build the official GHMM bindings. This ticket replaces those bindings with clean new Cython bindings that have much much better documentation, but initially expose much less functionality.
NOTE: This shouldn't actually get added to Sage until it gets formally voted on in sage-devel.
SEE ALSO: #3773
Component: finance
Issue created by migration from https://trac.sagemath.org/ticket/3726
The text was updated successfully, but these errors were encountered: