Time Series Forecasting Test Issue #1254
-
Hi, I have a dataset with three years of data. To have more data, I split the day into 12 hours. Here is my code:
The dataset is attached. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Hi, @leonardo95 It seems, that you are following an example of a time series forecasting pipeline initiation. Also there is no dataset_path = ...
target_column = 'frequency'
dataset = pd.read_csv(dataset_path, header=0, sep=";", low_memory=False)
task = Task(TaskTypesEnum.ts_forecasting, TsForecastingParams(forecast_length=720))
train_input = InputData.from_csv_time_series(file_path=dataset_path, task=task, target_column=target_column, delimiter=";")
train_data, test_data = train_test_data_setup(train_input)
model = Fedot(problem='ts_forecasting', task_params=task.task_params, timeout=1, cv_folds=2)
pipeline = model.fit(train_data)
out_sample_forecast = model.forecast(test_data)
print("First out:", out_sample_forecast)
print('Metrics for out-sample forecast:',
model.get_metrics(metric_names=['rmse', 'mae', 'mape']))
model.plot_prediction() Output on your data
Let us know if the problem has been solved or if there are any difficulties |
Beta Was this translation helpful? Give feedback.
There seems to be a problem for high values of parameter
forecast_length
for a dataframe of 1400 records total.So here are the possible solutions:
Code listing for in-sample forecast