Re: [Scikit-learn-general] sklearn.preprocessing.normalize does not sum to 1

2015-12-17 Thread Ryan R. Rosario
Thank you for the suggestions. The behavior persists after I tried them :-(. To answer Dale’s question, when I pass the array to random.choice, I get a ValueError that the probabilities do not sum to 1. I found a line of code that seems to lead to the problem: numpy.power(...) I have to rai

Re: [Scikit-learn-general] Neural Networks Contribution Tasks

2015-12-17 Thread Raghav R V
Please go ahead and raise a PR! :) On Thu, Dec 17, 2015 at 6:59 PM, Nelson Liu wrote: > I'd be happy to contribute to this! > > > On Thu, Dec 17, 2015, 9:53 AM Gael Varoquaux < > gael.varoqu...@normalesup.org> wrote: > >> +1 >> >> On Thu, Dec 17, 2015 at 06:37:45PM +0100, Raghav R V wrote: >> >

Re: [Scikit-learn-general] Neural Networks Contribution Tasks

2015-12-17 Thread Nelson Liu
I'd be happy to contribute to this! On Thu, Dec 17, 2015, 9:53 AM Gael Varoquaux wrote: > +1 > > On Thu, Dec 17, 2015 at 06:37:45PM +0100, Raghav R V wrote: > > 05271b7cbb Content-Type: text/html; charset=UTF-8 > Content-Transfer-Encoding: > > quoted-printable > > I guess we need a FAQ for "Why

Re: [Scikit-learn-general] Neural Networks Contribution Tasks

2015-12-17 Thread Gael Varoquaux
+1 On Thu, Dec 17, 2015 at 06:37:45PM +0100, Raghav R V wrote: > 05271b7cbb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: > quoted-printable > I guess we need a FAQ for "Why is there no support for deep learning/Will > there > be support for deep learning in scikit-learn?" whi

Re: [Scikit-learn-general] Neural Networks Contribution Tasks

2015-12-17 Thread Raghav R V
I guess we need a FAQ for "Why is there no support for deep learning/Will there be support for deep learning in scikit-learn?" which will expand on "Will you add GPU support" ? If you agree, I'll raise an issue! On Wed, Dec 16, 201

[Scikit-learn-general] sklearn.cross_decomposition.PLSRegression: would like to fix the scaling issue

2015-12-17 Thread Ola Pawluczyk
Hi Andy and all, I've had more time to play around with this problem, and I would like to take a stab at fixing the scaling issues I found and reported in https://github.com/scikit-learn/scikit-learn/issues/6002 Is there someone who has ownership of the cross_decomposition module? I am very new

Re: [Scikit-learn-general] sklearn.preprocessing.normalize does not sum to 1

2015-12-17 Thread Dale Smith
Ryan, did you try passing the arrays, as they are, to np.random.choice? Do you get what you expect? Dale Smith, Ph.D. Data Scientist ​ d. 404.495.7220 x 4008   f. 404.795.7221 Nexidia Corporate | 3565 Piedmont Road, Building Two, Suite 400 | Atlanta, GA 30305 -Original Message-

Re: [Scikit-learn-general] sklearn.preprocessing.normalize does not sum to 1

2015-12-17 Thread Matthieu Brucher
The thing is that even if you did sum and divide by the sum, summing the results back may not lead to 1.0. This is always the "issue" in floating point computation. Cheers, Matthieu 2015-12-17 8:26 GMT+01:00 Ryan R. Rosario : > Hi, > > I have a very large dense numpy matrix. To avoid running out

Re: [Scikit-learn-general] sklearn.preprocessing.normalize does not sum to 1

2015-12-17 Thread Dale Smith
Ryan, Have you tried a small problem to see if the float32 datatype is causing you problems? float64 is going to give 15-17 digits of precision, meaning you may not get to the exact 1.0 representation, especially with float32. I am not sure this will help you, but take a look at numpy.memma