Closed hangqianjun closed 1 year ago
Patch coverage: 100.00%
and project coverage change: +0.19%
:tada:
Comparison is base (
c84ab6a
) 95.86% compared to head (727298d
) 96.05%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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
?
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: @.***>
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.
Are these data available somewhere already?
Does src/rail/examples_data/testdata/output_BPZ_lite.fits
work? it is already in the repo.
@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 .ini
file, e.g. maybe TXPipe does something like that?
Also, output_BPZ_lite.fits
may not be the best test file, as the mode values for the first 10 galaxies are all either at z<0.2 or z>2.8, and thus the default tomographer value (for SRD binning) for all 10 is -99
. We may need to include another small test file here with more appropriate mode values.
Other than that, this looks very nice!
Hi @aimalz, are you happy with the module/algorithm names? Let me know if you have suggestions!
Change Description
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