Skip to main content

module statsforecast.ets


function etssimulate

etssimulate(
    x: ndarray,
    m: int,
    error: Component,
    trend: Component,
    season: Component,
    alpha: float,
    beta: float,
    gamma: float,
    phi: float,
    h: int,
    y: ndarray,
    e: ndarray
) → None

function etsforecast

etsforecast(
    x: ndarray,
    m: int,
    trend: Component,
    season: Component,
    phi: float,
    h: int,
    f: ndarray
) → None

function initparam

initparam(
    alpha: float,
    beta: float,
    gamma: float,
    phi: float,
    trendtype: str,
    seasontype: str,
    damped: bool,
    lower: ndarray,
    upper: ndarray,
    m: int,
    bounds: str
)

function admissible

admissible(alpha: float, beta: float, gamma: float, phi: float, m: int)

function check_param

check_param(
    alpha: float,
    beta: float,
    gamma: float,
    phi: float,
    lower: ndarray,
    upper: ndarray,
    bounds: str,
    m: int
)

function fourier

fourier(x, period, K, h=None)

function initstate

initstate(y, m, trendtype, seasontype)

function switch

switch(x: str) → Component

function switch_criterion

switch_criterion(x: str) → Criterion

function pegelsresid_C

pegelsresid_C(
    y: ndarray,
    m: int,
    init_state: ndarray,
    errortype: str,
    trendtype: str,
    seasontype: str,
    damped: bool,
    alpha: float,
    beta: float,
    gamma: float,
    phi: float,
    nmse: int
)

function optimize_ets_target_fn

optimize_ets_target_fn(
    x0,
    par,
    y,
    nstate,
    errortype,
    trendtype,
    seasontype,
    damped,
    par_noopt,
    lowerb,
    upperb,
    opt_crit,
    nmse,
    bounds,
    m,
    pnames,
    pnames2
)

function etsmodel

etsmodel(
    y: ndarray,
    m: int,
    errortype: str,
    trendtype: str,
    seasontype: str,
    damped: bool,
    alpha: float,
    beta: float,
    gamma: float,
    phi: float,
    lower: ndarray,
    upper: ndarray,
    opt_crit: str,
    nmse: int,
    bounds: str,
    maxit: int = 2000,
    control=None,
    seed=None,
    trace: bool = False
)

function is_constant

is_constant(x)

function ets_f

ets_f(
    y,
    m,
    model='ZZZ',
    damped=None,
    alpha=None,
    beta=None,
    gamma=None,
    phi=None,
    additive_only=None,
    blambda=None,
    biasadj=None,
    lower=None,
    upper=None,
    opt_crit='lik',
    nmse=3,
    bounds='both',
    ic='aicc',
    restrict=True,
    allow_multiplicative_trend=False,
    use_initial_values=False,
    maxit=2000
)

function pegelsfcast_C

pegelsfcast_C(h, obj, npaths=None, level=None, bootstrap=None)

function forecast_ets

forecast_ets(obj, h, level=None)

function forward_ets

forward_ets(fitted_model, y)