jiangyi15 / tf-pwa

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

feat: factor_iteration #114

Closed jiangyi15 closed 11 months ago

jiangyi15 commented 11 months ago

iteration function for partial waves

int_mc =  tf.reduce_sum(amp(phsp))
for chain, mask in amp.factor_iteration(deep=2):
    a = tf.reduce_sum(amp(phsp))
    print(chain, mask, a/int_mc)
codecov[bot] commented 11 months ago

Codecov Report

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

Comparison is base (a64fbac) 76.40% compared to head (9febaad) 76.41%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #114 +/- ## ======================================= Coverage 76.40% 76.41% ======================================= Files 109 109 Lines 16018 16059 +41 Branches 3007 3023 +16 ======================================= + Hits 12239 12271 +32 - Misses 3079 3083 +4 - Partials 700 705 +5 ``` | [Flag](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114/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/114/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) | `76.41% <80.95%> (+<0.01%)` | :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/114?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/114?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=) | `84.87% <100.00%> (+0.19%)` | :arrow_up: | | [tf\_pwa/data\_trans/helicity\_angle.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114?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-dGZfcHdhL2RhdGFfdHJhbnMvaGVsaWNpdHlfYW5nbGUucHk=) | `93.71% <100.00%> (+0.06%)` | :arrow_up: | | [tf\_pwa/tests/test\_full.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114?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-dGZfcHdhL3Rlc3RzL3Rlc3RfZnVsbC5weQ==) | `100.00% <100.00%> (ø)` | | | [tf\_pwa/variable.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114?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-dGZfcHdhL3ZhcmlhYmxlLnB5) | `60.71% <50.00%> (-0.05%)` | :arrow_down: | | [tf\_pwa/amp/core.py](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114?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.49% <80.00%> (+0.07%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/jiangyi15/tf-pwa/pull/114/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.