mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 20:15:21 +00:00
prediction_classes
This commit is contained in:
parent
466037ef5e
commit
db13fbf8d7
@ -202,7 +202,7 @@ gbm.save_model("face-recognition-ensemble-model.txt")
|
|||||||
#--------------------------
|
#--------------------------
|
||||||
#Evaluation
|
#Evaluation
|
||||||
|
|
||||||
predictions = gbm.predict(x_test)
|
prediction_classes = gbm.predict(x_test)
|
||||||
|
|
||||||
cm = confusion_matrix(y_test, prediction_classes)
|
cm = confusion_matrix(y_test, prediction_classes)
|
||||||
print(cm)
|
print(cm)
|
||||||
@ -246,4 +246,4 @@ auc = metrics.roc_auc_score(y_test, y_pred_proba)
|
|||||||
plt.figure(figsize=(7,3))
|
plt.figure(figsize=(7,3))
|
||||||
plt.plot(fpr,tpr,label="data 1, auc="+str(auc))
|
plt.plot(fpr,tpr,label="data 1, auc="+str(auc))
|
||||||
|
|
||||||
#--------------------------
|
#--------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user