[Solved] sklearn.metrics.roc_curve only shows 5 fprs, tprs, thresholds [closed]

This might depend on the default value of the parameter drop_intermediate (default to true) of roc_curve(), which is meant for dropping suboptimal thresholds, doc here. You might prevent such behaviour by passing drop_intermediate=False, instead. Here’s an example: import numpy as np try: from sklearn.datasets import fetch_openml mnist = fetch_openml(‘mnist_784’, version=1, cache=True) mnist[“target”] = mnist[“target”].astype(np.int8) except … Read more