Skip to content
Plotly templates

Math — Plot: ROC Curve

Classifier ROC versus the random baseline.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines+markers","name":"classifier","line":{"color":"#16a34a","width":3},
     "x":[0,0.05,0.1,0.2,0.4,0.6,0.8,1],"y":[0,0.4,0.6,0.75,0.88,0.94,0.98,1]},
    {"type":"scatter","mode":"lines","name":"random","line":{"color":"#9ca3af","width":2,"dash":"dash"},
     "x":[0,1],"y":[0,1]}
  ],
  "layout": {"title":"ROC curve","xaxis":{"title":"false positive rate"},"yaxis":{"title":"true positive rate"}}
}