-
Notifications
You must be signed in to change notification settings - Fork 9
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
First pass for ARHMM #123
base: gd/ar
Are you sure you want to change the base?
First pass for ARHMM #123
Conversation
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.
Thank you @fausto-mpj for being willing to contribute! I'm excited to work on this with you.
I didn't look at the content yet (the tests are failing anyway) but I started with some advice on good PR practices. Since I don't know how experienced you are with Julia and GitHub, I made very broad remarks, so don't take them personally :)
I'm finishing the second pass today (probably), but this time I will run the tests before re-submitting the PR. I have some questions about the code and I will submit them together with the PR. (Some of them are already written as comments in my last commit, but I will organize them later to make it easier to review!) |
Awesome, thank you! |
I'm having some issues with (1) the allocation tests, (2) Baum-Welch convergence, and (3) the autodiff test. With respect to (1), I believe it is due to changes in the Now, (2) and (3) I believe are correlated and both mostly affect The changes in inference were mostly to adapt for the presence of I will keep trying tomorrow, but a second pair of eyes would be wonderful! |
Thank you for this, and sorry for the delay. I'll try to take a look this week. |
I've also finished the The reference paper is here. The reference implementation (in Python) is here. I've used this as a "ground truth" to test the results of Do you want me to commit these changes to this branch, or make a different PR? |
I think these should definitely go in a separate PR (and that PR will be much easier to review too) |
Got it! As soon as we finished this one, I will adjust whatever is necessary and submit the List Viterbi in a different PR. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## gd/ar #123 +/- ##
==========================================
- Coverage 95.27% 94.95% -0.33%
==========================================
Files 18 18
Lines 508 515 +7
==========================================
+ Hits 484 489 +5
- Misses 24 26 +2 ☔ View full report in Codecov by Sentry. |
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.
Thanks for working on this! As a general rule, you probably want to disrupt existing code as little as possible when you make a contribution, and abide by the interfaces that are already there. In this instance, this implies
- using the same convention for time indices
- avoiding overloads for
Base
functions likesize
which do something unexpected
I have not changed the sampling function yet, and the results are not checked for correctness. In the version, I just made sure that the changes you first implemented are running without any explicit error.