问题:
使用python库:classification_report 做多元逻辑回归出现错误:
classification_report ValueError: Mix type of y not allowed, got types {'continuous-multioutput', 'multiclass'}
解决:
y_preds 不是 1d-array,添加一行:
y_preds = np.argmax(y_preds,axis=1)
使用python库:classification_report 做多元逻辑回归出现错误:
classification_report ValueError: Mix type of y not allowed, got types {'continuous-multioutput', 'multiclass'}
y_preds 不是 1d-array,添加一行:
y_preds = np.argmax(y_preds,axis=1)