Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can resolve the ValueError by reshaping the input array to have three dimensions. You can do this by using the numpy reshape function.

For example, if your input array is called X and has shape (1,1), you can reshape it to have shape (1,1,1) using the following code:

import numpy as np
X = np.reshape(X, (1,1,1))

This will add a new dimension to the array, which should resolve the ValueError when you pass it to the model.