Hello I was going through the logic to calculate threshold to plot roc_curve. As far as I could understand, fps, tps and threshold is calculated in slklearn.metrics._binary_clf_curve . How are multiple values of threshold calculated for binary classification?
Also what is happening in the following lines? distinct_value_indices = np.where(np.diff(y_score))[0] threshold_idxs = np.r_[distinct_value_indices, y_true.size - 1] Thanks
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn