module statsforecast.mfles
function calc_mse
function calc_mae
function calc_mape
function calc_smape
function cross_validation
function logic_check
function logic_layer
function default_configs
function cap_outliers
function set_fourier
function calc_trend_strength
function calc_seas_strength
function calc_rsq
function calc_cov
function get_seasonality_weights
function get_fourier_series
function get_future_basis
function lasso_nb
function ses_ensemble
function fast_ols
function median
function ols
function wls
class OLS
method fit
method predict
class Zeros
method predict
class MFLES
method __init__
method fit
y(np.array): The time series as a numpy array.seasonal_period(int, optional): Seasonal period. Defaults to None.X(np.array, optional): Exogenous variables. Defaults to None.fourier_order(int, optional): How many fourier sin/cos pairs to create, the larger the number the more complex of a seasonal pattern can be fitted. A lower number leads to smoother results. This is auto-set based on seasonal_period. Defaults to None.ma(int, optional): The moving average order to use, this is auto-set based on internal logic. Passing 4 would fit a 4 period moving average on the residual component. Defaults to None.alpha(float, optional): The alpha which is used in fitting the underlying LASSO when using piecewise functions. Defaults to 1.0.decay(float, optional): Effects the slopes of the piecewise-linear basis function. Defaults to -1.n_changepoints(float, optional): The number of changepoint knots to place, a default of .25 with place .25 * series length number of knots. Defaults to 0.25.seasonal_lr(float, optional): A shrinkage parameter (0 < seasonal_lr <= 1) which penalizes the seasonal fit, a .9 will flatly multiply the seasonal fit by .9 each boosting round, this can be used to allow more signal to the exogenous component. Defaults to 0.9.rs_lr(float, optional): A shrinkage parameter (0 < rs_lr <= 1) which penalizes the residual smoothing, a .9 will flatly multiply the residual fit by .9 each boosting round, this can be used to allow more signal to the seasonality or linear components. Defaults to 1.exogenous_lr(float, optional): Shrinkage parameter for exogenous variables. Defaults to 1.exogenous_estimator(class, optional): Estimator class for exogenous variables. Defaults to OLS.exogenous_params(dict, optional): Parameters for exogenous estimator. Defaults to .linear_lr(float, optional): A shrinkage parameter (0 < linear_lr <= 1) which penalizes the linear trend fit, a .9 will flatly multiply the linear fit by .9 each boosting round, this can be used to allow more signal to the seasonality or exogenous components. Defaults to 0.9.cov_threshold(float, optional): The deseasonalized cov is used to auto-set some logic, lowering the cov_threshold will result in simpler and less complex residual smoothing. If you pass something like 1000 then there will be no safeguards applied. Defaults to 0.7.moving_medians(bool, optional): The default behavior is to fit an initial median to the time series, if you pass True to moving_medians then it will fit a median per seasonal period. Defaults to False.max_rounds(int, optional): The max number of boosting rounds. The boosting will auto-stop but depending on other parameters such as rs_lr you may want more rounds. Generally, the more rounds => the more smooth your fit. Defaults to 50.min_alpha(float, optional): The min alpha in the SES ensemble. Defaults to 0.05.max_alpha(float, optional): The max alpha used in the SES ensemble. Defaults to 1.0.round_penalty(float, optional): Round penalty parameter. Defaults to 0.0001.trend_penalty(bool, optional): Whether to apply a simple penalty to the lienar trend component, very useful for dealing with the potentially dangerous piecewise trend. Defaults to True.multiplicative(bool, optional): Auto-set based on internal logic, but if given True it will simply take the log of the time series. Defaults to None.changepoints(bool, optional): Whether to fit for changepoints if all other logic allows for it, by setting False then MFLES will not ever fit a piecewise trend. Defaults to True.smoother(bool, optional): If True then a simple exponential ensemble will be used rather than auto settings. Defaults to False.seasonality_weights(bool, optional): Whether to use seasonality weights. Defaults to False.
np.array: Fitted values.
method optimize
y(np.array): Your time series as a numpy array.test_size(int): Length of the test set to hold out to calculate test error.n_steps(int): Number of train and test sets to create.step_size(int, optional): How many periods to move after each step. Defaults to 1.seasonal_period(int or list, optional): The seasonal period to calculate for. Defaults to None.metric(str, optional): Supported metrics are smape, mape, mse, mae. Defaults to ‘smape’.X(np.array, optional): Exogenous variables. Defaults to None.params(dict, optional): A user provided dictionary of params to try. Defaults to None.
dict: Optimal parameters configuration.

