ValueError: Classification metrics can‘t handle a mix of binary and continuous targets
文章目录先给解决方法:现在给报错背景:原因探索:先给解决方法:原先的代码:f.values.astype(float)X=f.iloc[:,:-1]y=f.iloc[:,-1]#此处省略部分代码fromsklearnimportmetricsprint(metrics.classification_report(y,predict_y))print('Confusionmatrix:\n',met