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: Use TensorViewer in SciPy optimizer, instead of explicit constraints #970

Closed
wants to merge 10 commits into from

Conversation

kratsg
Copy link
Contributor

@kratsg kratsg commented Jul 20, 2020

Pull Request Description

Part of pulling out/refactoring #951. We need to split out the portion of rewriting scipy to use TensorViewer first, so we know the changes in the tests, before doing a larger refactor.

Checklist Before Requesting Reviewer

  • Tests are passing
  • "WIP" removed from the title of the pull request
  • Selected an Assignee for the PR to be responsible for the log summary

Before Merging

For the PR Assignees:

  • Summarize commit messages into a comprehensive review of the PR
* Rewrite the scipy_optimizer to use TensorViewer and drop constraints

@kratsg kratsg requested review from matthewfeickert and lukasheinrich and removed request for matthewfeickert July 20, 2020 16:38
@kratsg kratsg self-assigned this Jul 20, 2020
@kratsg kratsg added the refactor A code change that neither fixes a bug nor adds a feature label Jul 20, 2020
@kratsg kratsg changed the title feat: Use TensorViewer in scipy optimizer, instead of explicit constraints refactor: Use TensorViewer in scipy optimizer, instead of explicit constraints Jul 20, 2020
@kratsg kratsg force-pushed the feat/scipyTVStitch branch from aaf68a4 to 2885764 Compare July 21, 2020 00:01
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #970 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #970      +/-   ##
==========================================
+ Coverage   96.48%   96.50%   +0.02%     
==========================================
  Files          57       57              
  Lines        3217     3236      +19     
  Branches      441      442       +1     
==========================================
+ Hits         3104     3123      +19     
  Misses         72       72              
  Partials       41       41              
Flag Coverage Δ
#unittests 96.50% <100.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
src/pyhf/infer/__init__.py 100.00% <ø> (ø)
src/pyhf/infer/mle.py 100.00% <ø> (ø)
src/pyhf/infer/test_statistics.py 100.00% <ø> (ø)
src/pyhf/__init__.py 98.00% <100.00%> (+0.08%) ⬆️
src/pyhf/optimize/opt_scipy.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8accab...a0db844. Read the comment docs.

@matthewfeickert matthewfeickert changed the title refactor: Use TensorViewer in scipy optimizer, instead of explicit constraints refactor: Use TensorViewer in SciPy optimizer, instead of explicit constraints Jul 21, 2020
this doens't change the technical code, so don't bother the PR author
with the request
Copy link
Member

@matthewfeickert matthewfeickert left a comment

Choose a reason for hiding this comment

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

Overall looking very nice, and I appreciate the work that factoring this out took. Just have a few questions and then we need @lukasheinrich's review.

@kratsg kratsg requested a review from matthewfeickert July 21, 2020 12:26
@kratsg
Copy link
Contributor Author

kratsg commented Jul 22, 2020

Closing in favor of #951 which is preserving all of the functionality instead of removing the option to not-stitch entirely.

@kratsg kratsg closed this Jul 22, 2020
@kratsg kratsg deleted the feat/scipyTVStitch branch July 25, 2020 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants