stanbkt.fits.FitMethod#
- class stanbkt.fits.FitMethod(*values)#
Bases:
StrEnumEnumeration of supported fitting methods.
- Variables:
- MCMC = 'mcmc'#
- MLE = 'mle'#
- PATHFINDER = 'pathfinder'#
- VB = 'vb'#
- static infer_fit_method_from_stan_fit(fit)#
Infer the fit method from a CmdStan fit object.
- Parameters:
fit (
Union[CmdStanMCMC,CmdStanMLE,CmdStanVB,CmdStanPathfinder]) – Fit object created by CmdStanPy.- Returns:
Inferred fit method enum value.
- Return type:
- Raises:
ValueError – If
fittype is unsupported.