-
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
Issue/10/tomo bins #18
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #18 +/- ##
==========================================
+ Coverage 95.86% 96.05% +0.19%
==========================================
Files 29 32 +3
Lines 1643 1724 +81
==========================================
+ Hits 1575 1656 +81
Misses 68 68
☔ View full report in Codecov by Sentry. |
While trying to writing a unit test for the |
Depends on the size. If it is more that a few 10’s of galaxies it would be better to download the data than to include it in the repo.On Jul 4, 2023, at 12:20 PM, hangqianjun ***@***.***> wrote:
While trying to writing a unit test for the PZTomographer algorithm, I realised that there doesn't seem to be test qp.Ensemble data available in src/rail/examples_data/testdata/. Could we add a small test qp file like test_dc2_training_9816.hdf5?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Are these data available somewhere already? |
Does |
@hangqianjun I was looking at this PR earlier, I don't think that we want to have input parameters in a .ini file unless there is a strong reason to do so, as that file could change between runs if someone pushes a change and updated values could lead to non-reproducibility on subsequent runs. Having all of the parameters as config params seems like a better way of tracking things in terms of reproducibility. Was there a reason to do this with a Also, Other than that, this looks very nice! |
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 great, thanks Qianjun!
Hi @aimalz, are you happy with the module/algorithm names? Let me know if you have suggestions! |
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.
I have a couple comments on naming and documentation but my major request is to split this first classifier into two because the algorithms they're implementing are different enough that they should be distinguished by more than just a config keyword.
(Not a barrier to this PR, but just so we don't forget, a final follow-up to this would be to add a cell or two to the Golden Spike notebook in the vanilla rail repo demonstrating usage and plotting the results.)
…ue/10/tomo_bins It merges an updated upstream into a local branch (updated informer module).
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.
💯
Change Description
Resolves Simple class for tomographic binning #10
Solution Description
In this PR I have added a
tomographer
module undersrc/rail/estimation
. It contains two generic tomographer classes:PZTomographer
, which takes per-galaxy n(z) from aqp.Ensemble
object and output a tabular object with tomographic binning;CatTomographer
, which takes catalogue-like data and output a tabular object with tomographic binning;The second type will be compatible with the classifiers in tomo-challenge, where features in the catalogue are used to assign tomographic bins.
For each of these types, I've added an example classifier in
algos/
.naiveClassifierSRD
is a PZtomographer that uses simple point estimate SRD binning;randomForestClassifier
is a CatTomographer which is adapted from TXPipe.Code Quality
Project-Specific Pull Request Checklists
Bug Fix Checklist
New Feature Checklist
Documentation Change Checklist
Build/CI Change Checklist
Other Change Checklist