ValueError: Target is multiclass but average=‘binary‘. ‘micro‘、‘macro‘、‘weighted‘ 或 None选择哪一个?完美回答如下
1.原始代码print("准确度accuracy是:%0.4f"%accuracy_score(Y_test,y_pred2))print("精确度precision是:%0.4f"%precision_score(Y_test,y_pred2))print("recall是:%0.4f"%recall_score(Y_test,y_pred2))print("f1_score是:%0.4f"%f