Comments (2)
One thought at the moment is you can subclass the scipy_optimizer
via something like this for now:
class scipy_optimizer_hess(pyhf.optimize.scipy_optimizer):
def _get_minimizer(self, *args, hess=None, **kwargs):
return lambda *a, **k: scipy.optimize.minimize(*a, **k, hess=hess)
and then you can use it like so:
pyhf.set_backend(pyhf.tensorlib, scipy_optimizer_hess())
just to get a quick way of having it working for right now. This is probably something that needs a bit more thought as minuit
doesn't support the hess
, so we'd need a way to handle it seamlessly.
from pyhf.
Thanks, yes, that can work. It's trickier than I first thought, though, because of how it must interact with fixed_params.
from pyhf.
Related Issues (20)
- Release v0.7.4 checklist HOT 1
- Default POI name for model construction
- Document / summarize additional tools in the "family" / network
- Allow for disabling the default backend in tests at the command line
- Construction of qmutilde for muhat < 0 HOT 6
- jsonschema cannot find path specified \\1.0.0\\def.json HOT 7
- Add basic testing for Windows
- Use `tmp_path` pytest fixture over `tmpdir`
- Make tests/test_scripts.py that use pytest-console-scripts script_runner fixture OS independent HOT 1
- Release v0.7.5 checklist
- Python 3.12 support tracking HOT 5
- Pruning with logical "and" instead of "or" HOT 2
- Catch 100% normalization uncertainty modifiers
- Remove `InvalidNameReuse` exception in favor of in `InvalidModel`
- Typing for tensor shapes
- `ValueError: The truth value of an array` ... when using `fixed_params` kwarg for `pyhf.infer.hypotest` HOT 4
- Release v0.7.6 checklist
- Typo in docs for qmutilde test-statistic
- Implementation of fixed params in scipy minimizer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyhf.