[scikit-learn] Fwd: Scikit-learn MLPRegressor Help

Gael Varoquaux gael.varoquaux at normalesup.org
Sat Dec 3 05:29:26 EST 2016


On Sat, Dec 03, 2016 at 03:08:00PM +0530, Alekh Karkada Ashok wrote:
> I want use the Scikit-learn's MLPRegressor to map image to image. That is I
> have a numpy array of size [1000,2030400] (1000 samples, 76800x3 (RGB) pixels).
> Corresponding labelled images I have. Therefore Y is also [1000,230400]. But
> according to documentation:

1 thousands samples and 2030 thousands features: you are using the wrong
tool, I multi-layer perceptron model will be too complex and overfit in
these settings. I would suggest a ridge.

> We can see that Y should be a column matrix. Does this mean Scikit-learn
> doesn't support multiple outputs?

I believe that this is a documentation error. Could you open an issue
(only on the documentation error)

> I am getting MemoryError when I try to fit now.
> More: http://stackoverflow.com/questions/40945791/memoryerror-in-scikit-learn

I believe that your problem is too high-dimensional; Too many features.

G


More information about the scikit-learn mailing list