-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feat!: new parameter API #63
Conversation
Removed the concept of compile time inference for free/frozen, and all relevant API. Simplified and reduced the number of `invoke*` functions to reduce maintenance complexity. Added various parameter caches to reduce allocations and allow for update flexibility during fitting. Most tests passing -- infact only one is broken (commented out for now) and I don't know why?
This is the second time the CI runner has failed to get the data? |
The fitting bug seems to be that the |
Turning off autodiff gives the right (old) result, so it's some kind of gradient erasure! |
Between the two model invokes: # binding :K_1
# b f
Partials(0.1, 3.6, 8.2, 2.0, 0.0, 0.0, 0.0, 0.0, 0.0) # k1
Partials(0.3, 0.0, 0.0, 0.0, 0.0, 0.1, 7.2, 9.1, 7.3) # k2
# we see the gradient does come in though
Partials(0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0) # parameters
# binding :K_2
# b f
Partials(8.2, 2.0, 0.1, 3.6, 0.0, 0.0, 0.0, 0.0, 0.0) # k1
Partials(0.0, 0.0, 0.3, 0.0, 9.0, 7.3, 0.0, 0.1, 7.2) # k2 There are (4 + 6) 10 model parameters, which it has correctly reduced to 9, but now it has also implicilty managed to pin an additional parameter in the second model. |
This only happens if the two models being fit have different numbers of model components. |
Fixed anomalous test condition that was failing 👍 |
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #63 +/- ##
==========================================
+ Coverage 69.04% 69.09% +0.04%
==========================================
Files 34 39 +5
Lines 1722 1870 +148
==========================================
+ Hits 1189 1292 +103
- Misses 533 578 +45
☔ View full report in Codecov by Sentry. |
Closes #58
Still todo:
Documentation still outstanding but that's for another PR. There's one weird bug in
test-fit-multi.jl
, where before these changes the very last test fittedand now
I checked the plots and it is an objectively worse fit. I have no idea why this is the only one that is failing though?