I'm using a MLPRegressor()
with partial_fit()
. My dataset has 2 outputs and 2 inputs.
I'm using a sequential model:
# input: X.shape(10.000, 2)
# output: y.shape(10.000, 2)
model = MLPRegressor()
for i in range(len(X)):
model.partial_fit(X[i], y[i])
# more code
But it gives me this error at model.partial_fit(X[i], y[i])
:
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
What's the problem? How could I solve it?