i'm using Keras and every time i try to fit my model
padded_model.fit(train_X, train_y, epochs=50, verbose=1)
i get this error :
'int' object has no attribute 'ndim'
If train_x
and train_y
are normal Python lists, they don't have the attribute .ndim
. Only Numpy arrays have this attribute representing the number of dimensions.
(https://docs.scipy.org/doc/numpy-1.12.0/reference/generated/numpy.ndarray.ndim.html)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With