Skip to content
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

refactor!: normalize function in NLL #192

Merged
merged 7 commits into from
Jan 8, 2021
Merged

refactor!: normalize function in NLL #192

merged 7 commits into from
Jan 8, 2021

Conversation

spflueger
Copy link
Member

The expertsystem was changed to not normalize the Intensity automatically anymore. To adapt to this change, the NLL estimator now gets another required argument, a phase space dataset. This is used to normalize the function.

Closes #191

@spflueger spflueger added the 🔨 Maintenance Maintenance and upkeep improvements label Jan 7, 2021
@redeboer redeboer added the ⚠️ Interface Breaking changes to the API label Jan 7, 2021
@codecov
Copy link

codecov bot commented Jan 7, 2021

Codecov Report

Merging #192 (7c163c7) into master (22f8ba4) will decrease coverage by 0.46%.
The diff coverage is 90.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #192      +/-   ##
==========================================
- Coverage   82.17%   81.71%   -0.47%     
==========================================
  Files          13       13              
  Lines         707      722      +15     
  Branches       98       99       +1     
==========================================
+ Hits          581      590       +9     
- Misses         91       99       +8     
+ Partials       35       33       -2     
Flag Coverage Δ
unittests 81.71% <90.47%> (-0.47%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/tensorwaves/estimator.py 91.42% <88.88%> (-3.31%) ⬇️
...ensorwaves/physics/helicity_formalism/amplitude.py 74.07% <100.00%> (-1.21%) ⬇️
...nsorwaves/physics/helicity_formalism/kinematics.py 84.72% <0.00%> (-0.70%) ⬇️

redeboer added a commit that referenced this pull request Jan 8, 2021
redeboer added a commit that referenced this pull request Jan 8, 2021
spflueger and others added 4 commits January 8, 2021 16:58
Cast value returned by clebsch gordan function of sympy evalf to
float and make compatible with tensorflow again.
The NLL estimator should now get an unnormalized function and performs
the normalization with the required phase space sample.
Copy link
Member

@redeboer redeboer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spflueger spflueger merged commit d469f7f into master Jan 8, 2021
@spflueger spflueger deleted the normalization branch January 8, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ Interface Breaking changes to the API 🔨 Maintenance Maintenance and upkeep improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Intensity normalization prevents fits
2 participants