graphing function takes labels as argument

Dr. Ballings,
Could you explain why our graphing function takes labels as an argument? It seems that the graph is only using the scores, calibrated
data, and predicted column from our data.

Answers and follow-up questions

Answer or follow-up question 1

Dear student,

It is used to compute the empirical probability (proportion of ones in your y).

Michel Ballings

Sign in to be able to add an answer or mark this question as resolved.