module datasetsforecast.m4
class Yearly
Yearly(seasonality: int = 1, horizon: int = 6, freq: str = ‘Y’, name: str = ‘Yearly’, n_ts: int = 23000)
method __init__
class Quarterly
Quarterly(seasonality: int = 4, horizon: int = 8, freq: str = ‘Q’, name: str = ‘Quarterly’, n_ts: int = 24000)
method __init__
class Monthly
Monthly(seasonality: int = 12, horizon: int = 18, freq: str = ‘M’, name: str = ‘Monthly’, n_ts: int = 48000)
method __init__
class Weekly
Weekly(seasonality: int = 1, horizon: int = 13, freq: str = ‘W’, name: str = ‘Weekly’, n_ts: int = 359)
method __init__
class Daily
Daily(seasonality: int = 1, horizon: int = 14, freq: str = ‘D’, name: str = ‘Daily’, n_ts: int = 4227)
method __init__
class Hourly
Hourly(seasonality: int = 24, horizon: int = 48, freq: str = ‘H’, name: str = ‘Hourly’, n_ts: int = 414)
method __init__
class Other
Other(seasonality: int = 1, horizon: int = 8, freq: str = ‘D’, name: str = ‘Other’, n_ts: int = 5000, included_groups: Tuple = (‘Weekly’, ‘Daily’, ‘Hourly’))
method __init__
class M4
M4(source_url: str = ‘https://raw.githubusercontent.com/Mcompetitions/M4-methods/master/Dataset/’, naive2_forecast_url: str = ‘https://github.com/Nixtla/m4-forecasts/raw/master/forecasts/submission-Naive2.zip’)
method __init__
method async_download
directory(str): Directory path to download dataset.
method download
directory(str): Directory path to download dataset.group(str, optional): Name of the group to download. If None, downloads all. Defaults to None.
method load
directory(str): Directory where data will be downloaded.group(str): Group name.Allowed groups: ‘Yearly’, ‘Quarterly’, ‘Monthly’, ‘Weekly’, ‘Daily’, ‘Hourly’.cache(bool): IfTruesaves and loads
class M4Evaluation
method evaluate
directory(str): Directory where data will be downloaded.group(str): Group name.Allowed groups: ‘Yearly’, ‘Quarterly’, ‘Monthly’, ‘Weekly’, ‘Daily’, ‘Hourly’.y_hat(Union[np.ndarray, str]): Group forecasts as numpy array or benchmark url fromhttps: //github.com/Nixtla/m4-forecasts/tree/master/forecasts.
pd.DataFrame: DataFrame with columns OWA, SMAPE, MASE and group as index.
method load_benchmark
directory(str): Directory where data will be downloaded.group(str): Group name.Allowed groups: ‘Yearly’, ‘Quarterly’, ‘Monthly’, ‘Weekly’, ‘Daily’, ‘Hourly’.source_url(str, optional): Optional benchmark url obtained fromhttps: //github.com/Nixtla/m4-forecasts/tree/master/forecasts. IfNonereturns Naive2.
np.ndarray: Numpy array of shape (n_series, horizon).
This file was automatically generated via lazydocs.

