-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fix factor 2 in sres2fim; Add fast biological test model (CR) #619
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #619 +/- ##
============================================
- Coverage 88.16% 34.50% -53.67%
============================================
Files 79 93 +14
Lines 5257 5854 +597
============================================
- Hits 4635 2020 -2615
- Misses 622 3834 +3212
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## develop #619 +/- ##
===========================================
+ Coverage 89.57% 89.82% +0.24%
===========================================
Files 94 94
Lines 5997 6013 +16
===========================================
+ Hits 5372 5401 +29
+ Misses 625 612 -13
Continue to review full report at Codecov.
|
What is the status here? :) |
realized that this would break quite a few things with amici, therefore need to refactor |
@jvanhoefer @FFroehlich it should work now. Changed history FVAL from chi2 to fval, apart from that everything should be consistent ... |
* add cr test case * fix test
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.
looks good to me.
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.
Looks fine, have only minor remarks :)
@@ -394,6 +430,42 @@ def test_trace_all_aggregated(self): | |||
self.check_history() | |||
|
|||
|
|||
class CRFunModeHistoryTest(HistoryTest): |
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.
To me it is not clear, where the difference to CRResModeHistoryTest
is, isn't this the exactly same code? And also it is not clear to me, where it is decided whether to use ModeFun
or ModeRes
?
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.
the difference is the used optimizer -- once it will call residuals, once function values.
test/util.py
Outdated
self.p_true: anp.ndarray = p_true | ||
self.sigma: float = sigma |
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.
self.p_true: anp.ndarray = p_true | |
self.sigma: float = sigma | |
self.p_true: anp.ndarray = p_true | |
self.sigma: float = sigma | |
Fixes #618
Fixes #660 to some degree (not replacement yet, but at least a content-wise fitting scenario ...)