Skip to content

Commit

Permalink
Template mix (#835)
Browse files Browse the repository at this point in the history
This extends the class `iminuit.cost.Template` to mixtures of templates
and parametric models. A parametric model has to be a scaled cumulative
density function, analog to what `iminuit.cost.ExtendedBinnedNLL`
expects.

A tutorial which uses the feature is also available.
  • Loading branch information
HDembinski authored Feb 13, 2023
1 parent 3f9d8a4 commit eda77c5
Show file tree
Hide file tree
Showing 6 changed files with 1,159 additions and 191 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
hooks:
- id: pydocstyle
files: src/iminuit/[^_].*\.py
additional_dependencies: [toml] # update when https://github.com/PyCQA/pydocstyle/pull/608 goes in!
additional_dependencies: [tomli]

# Python linter (Flake8)
- repo: https://github.com/pycqa/flake8
Expand Down
788 changes: 788 additions & 0 deletions doc/notebooks/template_model_mix.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Important for most users are only the first two entries.
notebooks/interactive
notebooks/simultaneous_fits
notebooks/template_fits
notebooks/template_model_mix
notebooks/conditional_variable
notebooks/scipy_and_constraints
notebooks/external_minimizer
Expand Down
Loading

0 comments on commit eda77c5

Please sign in to comment.