在 Python 中監控 Machine Learning
Maciej Balawejder
Data Scientist
預估效能:
衡量模型在 {{1}} 的預期表現
由 估計器(如 CBPE、DLE)決定
實現效能:

# Intialize the calculator
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'],
)
# Fit the calculator
calc.fit(reference)
realized_results = calc.calculate(analysis)
# Show realized performance plot
results.plot().show()

# Estimate and calculate results estimated_results = estimator.estimate(analysis) realized_results = calculator.calculate(analysis)# Show comparison plot realized_results.compare(estimated_results).plot().show()

在 Python 中監控 Machine Learning