LSSTDESC / rail_base

Base classes for RAIL
MIT License
0 stars 1 forks source link

Extend algo_utils to cover classifier #38

Closed hangqianjun closed 1 year ago

hangqianjun commented 1 year ago

Change Description

Solution Description

In the function one_algo, an optional key is_classifier is added to check if the tested algorithm is a classifier. If True, swaps pz.estimate to pz.classify.

Code Quality

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% :tada:

Comparison is base (4a78ef0) 95.40% compared to head (3ed26c5) 95.42%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #38 +/- ## ========================================== + Coverage 95.40% 95.42% +0.01% ========================================== Files 31 31 Lines 1588 1594 +6 ========================================== + Hits 1515 1521 +6 Misses 73 73 ``` | [Files Changed](https://app.codecov.io/gh/LSSTDESC/rail_base/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LSSTDESC) | Coverage Δ | | |---|---|---| | [src/rail/core/algo\_utils.py](https://app.codecov.io/gh/LSSTDESC/rail_base/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LSSTDESC#diff-c3JjL3JhaWwvY29yZS9hbGdvX3V0aWxzLnB5) | `100.00% <100.00%> (ø)` | | | [src/rail/stages/\_\_init\_\_.py](https://app.codecov.io/gh/LSSTDESC/rail_base/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=LSSTDESC#diff-c3JjL3JhaWwvc3RhZ2VzL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.