Want to create interactive content? It’s easy in Genially!
agustin.perez
Created on March 22, 2024
Discover more than 1500 professional designs like these:
Explore all templates
Curva ROC
agustin.perez
Created on March 22, 2024
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Practical Presentation
View
Smart Presentation
View
Essential Presentation
View
Akihabara Presentation
View
Pastel Color Presentation
View
Modern Presentation
View
Relaxing Presentation
Explore all templates
Transcript
Con los datos de esta tabla en la que están:
- los valores reales Y.
- Los valores predichos por el modelo.y_pred.
- Los valores calculados según el threshold implementado (0, 0.2, 0.4, 0.6, 0.8, 1.0)
- Código para la curva ROC:
import matplotlib.pyplot as plt plt.style.use("fivethirtyeight") fpr=[1, 0.83, 0.6, 0.33, 0, 0] tpr=[1,1,1,1,0.25,0] plt.figure(figsize=(8,6)) plt.plot(fpr, tpr, marker="X") plt.plot([0,1],[0,1],linestyle="--") plt.ylabel("True Positive Rate (TPR)") plt.xlabel("False Positive Rate (FPR)")Curva ROC-AUC