Python 中的机器学习监控
Maciej Balawejder
Data Scientist
估计性能:
衡量模型在 {{1}} 的预期表现
由 CBPE、DLE 等估计器确定
实际性能:

# 初始化计算器
calc = nannyml.PerformanceCalculator(
y_pred_proba='y_pred_proba',
y_pred='y_pred',
y_true='arrived',
timestamp_column_name='timestamp',
problem_type='classification_binary',
chunk_period='d',
metrics=['roc_auc', 'accuracy'],
)
# 拟合计算器
calc.fit(reference)
realized_results = calc.calculate(analysis)
# 显示实际性能图
results.plot().show()

# 估计并计算结果 estimated_results = estimator.estimate(analysis) realized_results = calculator.calculate(analysis)# 显示对比图 realized_results.compare(estimated_results).plot().show()

Python 中的机器学习监控