paddlets.metrics.metrics
- class MSE(mode: str = 'normal')[源代码]
基类:
Metric均方误差(mse).
- 参数
mode (str) – 支持的metric模式, 支持normal(非概率预测)、prob(概率预测)和anomaly(异常检测)三种模式
- _NAME
Metric名称.
- 类型
字符串
- _MAXIMIZE
用于标识优化方向.
- 类型
布尔值
- class MAE(mode: str = 'normal')[源代码]
基类:
Metric平均绝对误差(mae).
- 参数
mode (str) – 支持的metric模式, 支持normal(非概率预测)、prob(概率预测)和anomaly(异常检测)三种模式
- _NAME
Metric名称.
- 类型
字符串
- _MAXIMIZE
用于标识优化方向.
- 类型
布尔值
- class LogLoss(mode: str = 'normal')[源代码]
基类:
Metric对数损失(交叉熵损失).
- 参数
mode (str) – 支持的metric模式, 支持normal(非概率预测)、prob(概率预测)和anomaly(异常检测)三种模式
- _NAME
Metric名称.
- 类型
字符串
- _MAXIMIZE
用于标识优化方向.
- 类型
布尔值
- class QuantileLoss(q_points: List[float] = [0.1, 0.5, 0.9], quantile_level: Optional[Union[ndarray, List[float]]] = None, mode: str = 'prob')[源代码]
基类:
Metric- 分位数损失,参照论文:Bayesian Intermittent Demand Forecasting for Large Inventories .
分位数损失,当``q=0.5``时,退化为MAE损失。
- 参数
q_points (List[float]) – 分位点,默认值为None。在预测评估阶段,如果指定`q_points`,输出dict包含分位点对应的分位数损失。
mode (str) – 支持的metric模式, 支持normal(非概率预测)、prob(概率预测)和anomaly(异常检测)三种模式
- class ACC(mode: str = 'anomaly')[源代码]
基类:
Metric准确率得分(acc)
- 参数
mode (str) – 仅支持异常检测
- _NAME
Metric名称.
- 类型
字符串
- class Precision(mode: str = 'anomaly')[源代码]
基类:
Metric精确率得分(precision)
- 参数
mode (str) – 仅支持异常检测
- _NAME
Metric名称.
- 类型
字符串
- class Recall(mode: str = 'anomaly')[源代码]
基类:
Metric召回率得分(recall)
- 参数
mode (str) – 仅支持异常检测
- _NAME
Metric名称.
- 类型
字符串
- class F1(mode: str = 'anomaly')[源代码]
基类:
MetricF1得分(f1)
- 参数
mode (str) – 仅支持异常检测
- _NAME
Metric名称.
- 类型
字符串