添加耗时统计装饰器工具

This commit is contained in:
2025-10-26 00:51:22 +08:00
parent 332284293f
commit 982d0fda11
2 changed files with 24 additions and 3 deletions

View File

@@ -250,14 +250,14 @@ def compute_metrics(
beta = float(clf.coef_[0][0])
return {
"logloss": logloss,
"n_samples": len(df),
"brier": brier,
"ece": ece,
"logloss": logloss,
"accuracy": acc,
"reg_alpha": alpha,
"reg_beta": beta,
"ece": ece,
# 'ece_bins': bin_stats,
"n_samples": int(total),
}