У меня вопрос, связанный с
Код: Выделить всё
roc_curveКод: Выделить всё
scikit-learnКод: Выделить всё
y_pred = model.predict([x_test_real[:, 0],x_test_real[:, 1]])
fpr, tpr, thresholds = metrics.roc_curve(y_test_real, y_pred,pos_label=1)
roc_auc = metrics.auc(fpr, tpr)
print("roc_auc: %0.2f" % roc_auc)
Код: Выделить всё
pos_labelКод: Выделить всё
y_pred = model.predict([x_test_real[:, 0],x_test_real[:, 1]])
fpr, tpr, thresholds = metrics.roc_curve(y_test_real, y_pred,pos_label=0)
roc_auc = metrics.auc(fpr, tpr)
print("roc_auc: %0.2f" % roc_auc)
Код: Выделить всё
y_train_real = 1 - y_train_real
y_test_real = 1 - y_test_real
Код: Выделить всё
fpr, tpr, thresholds = metrics.roc_curve(y_test_real, y_pred,pos_label=0)
Код: Выделить всё
pos_label=1- If I change the positive label in my training target should it not affect the roc_curve auc values?
- Which case is the correct analysis?
- Does the output have anything to do with the loss function used? I am solving a binary classification problem of match and not match using "contrastive loss".
Источник: https://stackoverflow.com/questions/512 ... -confusion