开始使用免费开始使用

不同的分块方法

一个分块表示监控结果中的单个数据点。回顾一下,分块数据有三种方法:按时间、按大小或按分块数量。

在本练习中,您将使用基于大小和基于数量的分块方法,对 US Census 数据集的 CBPE 算法结果进行分块并可视化。

已为您导入 nannyml 库。

本练习是课程的一部分

Python 中的机器学习监控

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

reference, analysis, analysis_gt = ____.____()

# Initialize the CBPE algorithm
cbpe = nannyml.CBPE(
    y_pred_proba='predicted_probability',
    y_pred='prediction',
    y_true='employed',
    metrics = ['roc_auc', 'accuracy'],
    problem_type = 'classification_binary',
    ____ = ____,
)

cbpe = cbpe.fit(reference)
estimated_results = cbpe.estimate(analysis)
estimated_results.plot().show()
编辑并运行代码