StatsForecast 模型的似然函数¶
- class darts.utils.likelihood_models.statsforecast.QuantilePrediction(quantiles)[source]¶
- Bases: - Likelihood,- ABC- 分位数预测似然函数 - 可用于为包装了 statsforecast 模型的任何 Darts 模型生成分位数预测。 - 参数
- quantiles ( - list[- float]) – 分位数列表。默认值:[0.01, 0.05, 0.1, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99]。
 - 属性 - 返回单个目标值的分布参数数量。 - 返回似然参数名称。 - 返回似然函数类型。 - 方法 - component_names(input_series)- 为似然函数的参数生成名称。 - predict(model_output, num_samples)- 生成采样或直接的似然参数预测。 - sample(model_output, num_samples)- 从似然分布和预测参数中采样预测。 - component_names(input_series)¶
- 为似然函数的参数生成名称。 - 返回类型
- list[- str]
 
 - property num_parameters: int¶
- 返回单个目标值的分布参数数量。 - 返回类型
- int
 
 - property parameter_names: list[str]¶
- 返回似然参数名称。 - 返回类型
- list[- str]
 
 - predict(model_output, num_samples)[source]¶
- 生成采样或直接的似然参数预测。 - 参数
- model_output ( - ndarray) – StatsForecast 模型的输出。
- num_samples ( - int) – 从似然模型/分布中进行预测采样的次数。如果为 1 且 predict_likelihood_parameters=False,则返回中位数/平均值预测。
 
- 返回类型
- ndarray
 
 - property type: LikelihoodType¶
- 返回似然函数类型。 - 返回类型