Want to create interactive content? It’s easy in Genially!

Get started free

Curva ROC

agustin.perez

Created on March 22, 2024

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

Con los datos de esta tabla en la que están:
  1. los valores reales Y.
  2. Los valores predichos por el modelo.y_pred.
  3. Los valores calculados según el threshold implementado (0, 0.2, 0.4, 0.6, 0.8, 1.0)
  4. 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