AUC

次のコードで空欄になっている行に入る適切な選択肢を 1 ~ 3 から選び、 AUC を求めてください.

#Q1
from import roc_auc_score
[Q1 選択肢]
1. sklearn.decomposition
2. sklearn.ensemble
3. sklearn.metrics

y_true = [0, 0, 0, 1, 1, 1]
y_pred = [1, 0, 0, 1, 0, 0]

# Q2
auc = ##########

print(auc)

[Q2 の選択肢]
1. roc_auc_score(y_true, y_pred)
2. roc_auc_score([y_true, y_pred])
3. roc_auc_score(y_true*y_pred)

Leave a comment

Your email address will not be published. Required fields are marked *