smooth.OM
- class smooth.OM(model='ZXZ', lags=None, ar_order=0, i_order=0, ma_order=0, orders=None, constant=False, formula=None, regressors='use', occurrence='odds-ratio', loss='likelihood', h=0, holdout=False, persistence=None, phi=None, initial='backcasting', n_iterations=None, arma=None, ic='AICc', bounds='usual', verbose=0, nlopt_kargs=None, ets='conventional', **kwargs)
Occurrence model — Python port of R’s
om().Inherits the ADAM API surface and overrides the bits that differ: cost function (Bernoulli likelihood with link transform), distribution (always
"plogis"), scale (nan), and model-name format ("oETS(...)[F|O|I|D]").
Methods
|
Fit the ADAM model to time series data. |
|
Detect outliers and return a matrix of indicator dummy variables. |
|
Diagnostic plots for the fitted ADAM model (R: |
|
Probability forecast for the occurrence model. |
|
Generate prediction intervals using the fitted ADAM model. |
|
Return the (T-h) × h matrix of rolling in-sample multistep forecast errors. |
Return standardised residuals. |
|
|
Return studentised (leave-one-out) residuals. |
Select the best model based on information criteria and update model parameters. |
|
|
Generate a formatted summary of the fitted model. |
Attributes
Binary 0/1 occurrence indicator (matches R's |
|
Return Akaike Information Criterion. |
|
Return corrected Akaike Information Criterion. |
|
$B). |
|
Return Bayesian Information Criterion. |
|
Return corrected Bayesian Information Criterion. |
|
Return estimated coefficients (parameter vector B). |
|
$constant). |
|
$data). |
|
Always |
|
'A' (additive) or 'M' (multiplicative). |
|
In-sample fitted probabilities in [0, 1]. |
|
$holdout). |
|
$ICw). |
|
$initialType). |
|
$initial). |
|
Return True if model is a combination of multiple models. |
|
Return the vector of lags used in the model. |
|
Return log-likelihood of the fitted model. |
|
$loss). |
|
$lossValue). |
|
$measurement). |
|
Model name in |
|
Return ETS model type code (e.g., 'AAN', 'AAA', 'MAdM'). |
|
$models). |
|
$nParam). |
|
Return number of observations used for fitting. |
|
Return number of estimated parameters. |
|
Occurrence type used for fitting (e.g. |
|
Single-letter occurrence flag handed to the C++ fitter. |
|
Fitted occurrence model (OM / OMG / AutoOM), or None. |
|
Return ARIMA orders as dict with 'ar', 'i', 'ma' keys. |
|
$persistence). |
|
$phi). |
|
$profile). |
|
|
|
Always NaN for occurrence models (no continuous error scale). |
|
Same as |
|
$states). |
|
Time taken to fit the model in seconds. |
|
$transition). |