<div dir="ltr">As long as the feature ordering has a meaningful spatial component (as is almost always the case when you are dealing with raw pixels as features) CNNs will almost always be better.  CNNs actually have a lot fewer parameters than MLPs (depending on architecture of course) because of weight sharing among the parameters of the convolutional kernel within a feature map.</div><br><div class="gmail_quote"><div dir="ltr">On Sat, 3 Dec 2016 at 23:00 Alekh Karkada Ashok <<a href="mailto:alekhka@gmail.com">alekhka@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">No, I am not saying it is better than CNN, but my images aren't real-life images but computer generated silhouettes. So CNN seemed to be overkill. I'll revisit CNN. I resized the images and converted it to grayscale. Now I am feeding [1,4800] now and I am getting good output with MLP. I looped over all my images and used partial_fit to train each one.<br class="gmail_msg"></div>I didn't get what you meant by MLPClassifier doesn't support multi-output.<br class="gmail_msg"></div>Thanks for the help!</div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Sun, Dec 4, 2016 at 2:11 AM, Andy <span dir="ltr" class="gmail_msg"><<a href="mailto:t3kcit@gmail.com" class="gmail_msg" target="_blank">t3kcit@gmail.com</a>></span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
On 12/03/2016 03:10 PM, Alekh Karkada Ashok wrote:<br class="gmail_msg">
<blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
Hey All,<br class="gmail_msg">
<br class="gmail_msg">
I chose MLP because they were images and I have heard MLPs perform better.<br class="gmail_msg">
</blockquote></span>
Better than a convolutional neural net? Whoever told you that was wrong. I usually don't make absolute statements like this, but this is something that is pretty certain.<span class="gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
<blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
Where do you want to me to open the issue? GitHub? I don't think the error is only in documentation. Because when Y is [2030400,1] there is no MemoryError (treated as 2030400 samples with a single feature) and when I try to fit [1,2030400] it throws MemoryError. If the case was memory, both should have thrown the error right?<br class="gmail_msg">
</blockquote></span>
MLPClassifier actually supports multi-label classification (which is not documented correctly and I made an issue here: <a href="https://github.com/scikit-learn/scikit-learn/issues/7972" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/scikit-learn/scikit-learn/issues/7972</a>)<br class="gmail_msg">
MLPClassifier does not support multi-output (multi-class multi-output), which is probably what you want.<div class="m_-4535599968260193064HOEnZb gmail_msg"><div class="m_-4535599968260193064h5 gmail_msg"><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
scikit-learn mailing list<br class="gmail_msg">
<a href="mailto:scikit-learn@python.org" class="gmail_msg" target="_blank">scikit-learn@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br class="gmail_msg">
</div></div></blockquote></div><br class="gmail_msg"></div>
_______________________________________________<br class="gmail_msg">
scikit-learn mailing list<br class="gmail_msg">
<a href="mailto:scikit-learn@python.org" class="gmail_msg" target="_blank">scikit-learn@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/scikit-learn" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/scikit-learn</a><br class="gmail_msg">
</blockquote></div>