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

feat: allow constructing Estimator from Function #272

Merged
merged 2 commits into from
May 11, 2021
Merged

Conversation

redeboer
Copy link
Member

If the amplitude model is complicated, it can take over an hour to lambdify it to a Model. So it's annoying to have to do that twice if you use the same backend for data generation and fitting. This PR allows reusing a LambdifiedFunction for fitting.

@redeboer redeboer requested a review from Leongrim May 11, 2021 08:33
@redeboer redeboer self-assigned this May 11, 2021
@redeboer redeboer enabled auto-merge (squash) May 11, 2021 08:34
@codecov
Copy link

codecov bot commented May 11, 2021

Codecov Report

Merging #272 (21e1086) into main (18acfa7) will increase coverage by 0.23%.
The diff coverage is 60.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
+ Coverage   84.12%   84.36%   +0.23%     
==========================================
  Files          13       13              
  Lines         756      761       +5     
==========================================
+ Hits          636      642       +6     
+ Misses        120      119       -1     
Flag Coverage Δ
unittests 84.36% <60.71%> (+0.23%) ⬆️

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

Impacted Files Coverage Δ
src/tensorwaves/estimator.py 73.33% <60.71%> (-1.22%) ⬇️
src/tensorwaves/model.py 85.33% <0.00%> (+2.00%) ⬆️

@redeboer redeboer merged commit 999a4a5 into main May 11, 2021
@redeboer redeboer deleted the lamdified-estimator branch May 11, 2021 08:42
@redeboer redeboer added this to the 0.2.6 milestone May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants