jiangyi15 / tf-pwa

Partial Wave Analysis using TensorFlow.
MIT License
27 stars 14 forks source link

Fractions constrains #128

Closed jiangyi15 closed 1 year ago

jiangyi15 commented 1 year ago

New NLL model which allow constrain the fractions (with eff) of some components.

data:
    model: constr_frac

nll_params:
    constr_frac:
         res: 
              value: 0.2
              sigma: 0.03

it will add additional terms in nll $$-\ln L \Rightarrow -\ln L + \frac{1}{2 \sigma^2} (f(\theta) - f_{exp})^2$$

$$f(\theta) \approx \frac{\int |A_i|^2 \color{red}\epsilon\color{black} d\Phi}{\int |A|^2 \color{red}\epsilon \color{black}d\Phi} $$

codecov[bot] commented 1 year ago

Codecov Report

Attention: 8 lines in your changes are missing coverage. Please review.

Comparison is base (6a2dd60) 77.04% compared to head (a2afa72) 77.17%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #128 +/- ## ========================================== + Coverage 77.04% 77.17% +0.12% ========================================== Files 114 114 Lines 16574 16695 +121 Branches 3110 3128 +18 ========================================== + Hits 12770 12884 +114 - Misses 3097 3101 +4 - Partials 707 710 +3 ``` | [Flag](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | `77.17% <93.54%> (+0.12%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29) | Coverage Δ | | |---|---|---| | [tf\_pwa/amp/amp.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL2FtcC9hbXAucHk=) | `85.15% <100.00%> (+0.17%)` | :arrow_up: | | [tf\_pwa/amp/core.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL2FtcC9jb3JlLnB5) | `76.97% <100.00%> (+0.08%)` | :arrow_up: | | [tf\_pwa/model/model.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL21vZGVsL21vZGVsLnB5) | `53.87% <100.00%> (+0.13%)` | :arrow_up: | | [tf\_pwa/tests/test\_custum\_nll.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL3Rlc3RzL3Rlc3RfY3VzdHVtX25sbC5weQ==) | `100.00% <100.00%> (ø)` | | | [tf\_pwa/config\_loader/config\_loader.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL2NvbmZpZ19sb2FkZXIvY29uZmlnX2xvYWRlci5weQ==) | `70.16% <73.33%> (-0.02%)` | :arrow_down: | | [tf\_pwa/model/custom.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29#diff-dGZfcHdhL21vZGVsL2N1c3RvbS5weQ==) | `84.69% <94.20%> (+5.75%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/128/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jiang+Yi+%28%E8%92%8B%E8%89%BA%29)

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