-
Notifications
You must be signed in to change notification settings - Fork 1
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
Prior based on weights #153
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #153 +/- ##
==========================================
+ Coverage 66.32% 66.68% +0.36%
==========================================
Files 50 52 +2
Lines 6153 6211 +58
Branches 934 931 -3
==========================================
+ Hits 4081 4142 +61
+ Misses 2072 2069 -3 ☔ View full report in Codecov by Sentry. |
This is building locally but throwing errors on GitHub
"apply_nz = 1; // Apply n of z if it is specified unless we switch it off" "It must not take source properties which do not change during fit." "// General function allowing pybind overwriting |
I actually added the apply_nz switch so that it could be turned off for individual objects. As currently implemented it will only be applied if set as before in the config but with this switch you could turn it off on individual objects. Bu yes I agree it needs A bit of thought if it is applied alongside another set of weights. |
It is important to use github mechanisms of issues for RFC and introduction of ideas and ideas of implementation, but the ultimate way to illuminate the usage and behavior of a new piece of code is the unit testing. I know it is easier said than done :) |
I'll work on a unit test... |
tabs are required in parts of the makefile depending what languag that part is in
It might be more efficient to calculate all weights before the loop if the fulllib is large
What else should we test and how do we get high coverage of the c side Need to test the nz prior at least
I have noticed that the moving of the N z prior out of onesource is causing an issue with the z distribution with peaks at z=1,2 . Looking into it... |
Possibly interesting test prior is HSC mass-SFR relation in Tanaka et al. emission line ratios. Luminosity function. Some work on performance impact and benchmarking. |
We would like to enable general priors. Here is a first pass at enabling any prior on any model parameter.
Closes #60
In a first test I set a function from the Python side which updated the chi2. this caused significant issues with the speed due to the global interpreter lock from the Python side.
Now we just set a weight for each model in the fullLib libary. Given that we have access to fullLib we can then use any feature in the SED to determine the prior.
Change Description
A new prior class which is applied to each onesource object prior to the fit.
Solution Description
Code Quality
New Feature Checklist
Documentation Change Checklist
Build/CI Change Checklist
Other Change Checklist