azure - 为了从 Azure AutoML 时间序列预测中获得此结果,我可能做错了什么?

标签 azure time-series forecasting automl

我正在尝试使用 Azure AutoML 进行时间序列预测。我有一个简单的两列训练数据集,其中每小时包含两年的数据。第 1 列是日期/时间,第 2 列是我要预测的变量。我已经运行了几次 Azure AutoML,并且似乎成功完成。然而,当我进行预测并绘制图表时,显然有些问题。看起来预测正在以某种方式被量化。下图是训练后 7 天的情况。 azure 是实际情况,红色是预测情况。这显然是不对的。

enter image description here

这是我的训练配置(python):

lags = [1,24,168]
forecast_horizon = 7 * 24 # 7 days of hourly data
forecasting_parameters = ForecastingParameters(
    time_column_name="DateTime",
    forecast_horizon=forecast_horizon,
    target_lags=lags,
    country_or_region_for_holidays='NZ',
    freq='H',
    use_stl='season',
    seasonality='auto'
)
automl_config = AutoMLConfig(task='forecasting',
                             debug_log='automl_forecasting_function.log',
                             primary_metric='normalized_root_mean_squared_error',
                             experiment_timeout_hours=1,
                             experiment_exit_score=0.05, 
                             enable_early_stopping=True,
                             training_data=train_df,
                             compute_target=compute,
                             n_cross_validations=10,
                             verbosity = logging.INFO,
                             max_concurrent_iterations=19,
                             max_cores_per_iteration=19,
                             label_column_name="Output",
                             forecasting_parameters=forecasting_parameters,
                             featurization="auto",
                             enable_dnn=False)

运行中的最佳模型是 VotingEnsemble:

ForecastingPipelineWrapper(pipeline=Pipeline(
  memory=None,
  steps=[('timeseriestransformer',
  TimeSeriesTransformer(
    featurization_config=None,
    pipeline_type=<TimeSeriesPipelineType.FULL: 1>)),
  ('prefittedsoftvotingregressor',
  PreFittedSoftVotingRegressor(estimators=[('7',
  Pipeline(memory=None,
  steps=[('minmaxscaler',
  MinMaxScaler(copy=True,
  feature_range=(0,
  1))...
  DecisionTreeRegressor(ccp_alpha=0.0,
  criterion='mse',
  max_depth=None,
  max_features=0.5,
  max_leaf_nodes=None,
  min_impurity_decrease=0.0,
  min_impurity_split=None,
  min_samples_leaf=0.00218714609400816,
  min_samples_split=0.00630957344480193,
  min_weight_fraction_leaf=0.0,
  presort='deprecated',
  random_state=None,
  splitter='best'))],
  verbose=False))],
  weights=[0.5,
  0.5]))],
  verbose=False),
  stddev=None)

最佳答案

看来我并没有做任何根本错误的事情。我关掉提前停止并让它运行两个小时,然后得到这个...... enter image description here

关于azure - 为了从 Azure AutoML 时间序列预测中获得此结果,我可能做错了什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65014471/

相关文章:

mongodb - mongodb 是否适合通用时间序列数据?

具有季节性的 Excel 时间序列预测

r - 精度函数

r - ARIMA 拟合值

sql - 采样 SQL 时间序列

随机森林 - 插入符号 - 时间序列

azure - 无法使用 cli 创建 azure 虚拟机

azure - 如何在 ARM 模板中通过 ObjectID 获取 Azure AD 安全组名称?

c# - Hangfire 具有水平缩放功能

azure - 在 Azure 容器实例中安装卷时出错