【发布时间】:2021-04-16 15:32:40
【问题描述】:
我正在尝试对一些模型进行二元分类。我想根据分数和 f2 分数对模型进行分类。
对于“分数”,我使用了代码
for name, clf in zip(models, classifiers):
clf.fit(X_train, y_train)
score = clf.score(X_test, y_test)
scores.append(score)
它给出了所有模型的分数,但我无法找到所有模型的 f2 分数。谁能建议代码应该是什么?
【问题讨论】: