datasetsforecast.m4
Yearly
__init__
Quarterly
__init__
Monthly
__init__
Weekly
__init__
Daily
__init__
Hourly
__init__
Other
__init__
M4
__init__
async_download
directory
(str): Directory path to download dataset.download
directory
(str): Directory path to download dataset.group
(str, optional): Name of the group to download. If None, downloads all. Defaults to None.load
directory
(str): Directory where data will be downloaded.group
(str): Group name.Allowed groups
: ‘Yearly’, ‘Quarterly’, ‘Monthly’, ‘Weekly’, ‘Daily’, ‘Hourly’.cache
(bool): If True
saves and loadsM4Evaluation
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.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. If None
returns Naive2.np.ndarray
: Numpy array of shape (n_series, horizon).