ValueError: Per-column arrays must each be 1-dimensional

data = pd.DataFrame({'x': x, 'y_pred': svm_pred.flatten(), 'y_true': y_test.flatten()})#.iloc[100:200,:]

data = pd.DataFrame({'x': x, 'y_pred': svm_pred.flatten(), 'y_true': y_test.flatten()})#.iloc[100:200,:]

猜你喜欢

转载自blog.csdn.net/qq_38735017/article/details/135448896