1
Error:
AttributeError: 'tuple' object has no attribute 'reshape'
Code:
xx, yy = np.meshgrid(np.arange(x_min, x_max, h),np.arange(y_min, y_max, h))
y_pred = y_pred.reshape(xx.shape)
plt.figure()
In y_pred = y_pred.reshape(xx.shape)
there is this mistake, what to do?
Apparently
y_pred
is a tuple and you hoped it wasn’t. So what you can do is investigate whyy_pred
is a tuple.– Woss