smpl.fit.fit_kwargs

smpl.fit.fit_kwargs(kwargs)[source]

Set default fit_kwargs() if not set.

fit_kwargs

default

description

params

None

Initial fit parameters

fixed_params

True

Enable fixing parameters by choosing the same-named variables from kwargs.

maxfev

10000

Maximum function evaluations during fitting.

epsfcn

0.0001

Suitable step length for jacobian approximation.

xvar

None

Variable in fit function parameters that corresponds to the x axis. If it is None the last of the alphabetical sorted parameters is used.

autotqdm

True

Auto fitting display tqdm

fitter

Fitter.AUTO

Choose from :class:`Fitter`s.

Set default data_kwargs() if not set.

data_kwargs

default

description

frange

None

Limit the fit to given range. First integer is the lowest and second the highest index.

fselector

None

Function that takes x and y as parameters and returns an array mask in order to limit the data points for fitting. Alternatively a mask for selecting elements from datax and datay.

sortbyx

True

Enable sorting the x and y data so that x is sorted.

bins

0

Number of bins for histogram

binunc

poisson_dist

Number of bins for histogram

xerror

True

enable xerrors

yerror

True

enable yerrors