hepstats.utils#
hepstats.utils.fit#
hepstats.utils.fit.api_check#
Module for testing a fitting library validity with hepstats.
A fitting library should provide six basic objects:
model / probability density function
parameters of the models
data
loss / likelihood function
minimizer
fitresult (optional)
A function for each object is defined in this module, all should return True
to work
with hepstats.
The zfit API is currently the standard fitting API in hepstats.
|
Checks if a parameter has the following attributes/methods: |
|
Checks if the data object has the following attributes/methods: |
|
Checks if the pdf object has the following attributes/methods: |
|
Checks if the loss object has the following attributes/methods: |
|
Checks if the fit result object has the following attributes/methods: |
|
Checks if the minimzer object has the following attributes/methods: |
hepstats.utils.fit.diverse#
|
|
|
Compute pdf of model at a given point x and for given parameters values |
|
Compute minimum profile likelihood for fixed given parameters values. |
|
dataset_cls: only used to get the class in which array/weights will be converted. |
|
Returns the number of events in the dataset |
hepstats.utils.fit.sampling#
|
Creates samplers from models. |
|
Samples from samplers. |