sklearn分类算法的评价指标调用#二分类问题的算法评价指标import numpy as npimport matplotlib.pyplot as pltimport pandas as pdfrom sklearn import datasetsd=datasets.load_digits()x=d.datay=d.target.copy()print(len(y))y[d.target==9]=1y[d.target!=9]=0print(y)print(pd.value_counts…