Hans Moritz Günther
Hans Moritz Günther
Guessing works for one dataset: ```Python from sherpa.data import Data1D from sherpa.models.basic import Const1D from sherpa.stats import LeastSq from sherpa.fit import Fit, DataSimulFit d = Data1D("x", [-3, 5, 17, 22],...
[`hypothesis`](https://hypothesis.readthedocs.io/en/latest/index.html) is a Python package for property-based testing. It's widely used in the scientific ecosystem, easy to install with pip, easy to use in many cases and used per-test, meaning...
In the docs, the [How to write objective functions](https://optimagic.readthedocs.io/en/latest/how_to/how_to_criterion_function.html?highlight=least_squares) section has this intriguing sentence: > To use least-squares optimizers in optimagic, you need to mark your function with a decorator...