Fitting (sunkit_spex.fitting)#

sunkit_spex.fitting contains the sunkit-spex fitting infrastructure including statistics, optimisers and fitters.

sunkit_spex.fitting.fitters Module#

Classes#

JointFitter(optimizer, statistic)

Base class for all joint fitters.

ScipyMinimizeJointFitter([statistic])

Class Inheritance Diagram#

Inheritance diagram of sunkit_spex.fitting.fitters.JointFitter, sunkit_spex.fitting.fitters.ScipyMinimizeJointFitter

sunkit_spex.fitting.optimizers Package#

sunkit_spex.fitting.optimizers.minimizers Module#

This module contains functions to wrap around minimizer tools.

sunkit_spex.fitting.metrics Package#

sunkit_spex.fitting.metrics.decorators Module#

Decorators for the fit metrics module.

Functions#

check_metric_inputs(func)

Metrics should contain the same base inputs so need to check them.

sunkit_spex.fitting.metrics.log_likelihoods Module#

This module contains functions that compute a log-likelihood between two data-sets.

Functions#

gaussian(data_ys, model_ys, data_y_weights, ...)

Gaussian log-likelihood (to be maximized).

sunkit_spex.fitting.metrics.statistics Module#

This module contains functions that compute a fit statistic between two data-sets.

Functions#

cash(data_ys, model_ys, **kwargs)

The value to optimise while fitting.

chi_squared(data_ys, model_ys[, data_y_weights])

The value to optimise while fitting.

sunkit_spex.fitting.metrics.util Module#

Host utility functions that are useful for the metric module.

Functions#

error_to_weights(error)

Convert weights to errors.

weights_to_error(weights)

Convert weights to errors.

sunkit_spex.fitting Package#