gluonts.model.trivial.constant 模块#
- class gluonts.model.trivial.constant.ConstantPredictor(samples: numpy.ndarray)[source]#
- 基类: - gluonts.model.predictor.RepresentablePredictor- 一个始终产生相同预测的 Predictor。 - 参数
- samples – 用于为每次预测构建 SampleForecast 对象的样本。 
 - predict_item(item: Dict[str, Any]) gluonts.model.forecast.SampleForecast[source]#
 
- class gluonts.model.trivial.constant.ConstantValuePredictor(prediction_length: int, value: float = 0.0, num_samples: int = 1)[source]#
- 基类: - gluonts.model.predictor.RepresentablePredictor- 一个始终产生相同值作为预测的 Predictor。 - 参数
- value – 用作预测的值。 
- prediction_length – 预测范围。 
 
 - predict_item(item: Dict[str, Any]) gluonts.model.forecast.SampleForecast[source]#