Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Nikit Saraf
Hi Peter As recommended by you I'll switch to the master immediately and check with it. But I am unclear on flattening Y_1.Should it done or kept as 2D ? Thank you so much.And yes, Congratulations for Win in Kaggle Competition!! Regards Nikit Saraf On Fri, Jul 6, 2012 at 1:55 AM, Peter Prettenh

Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Peter Prettenhofer
Ok, I strongly recommend using the current master because I added some bugfixes w.r.t. input verification after the 0.11 release. I added some more test cases for input verification and another fix (I didn't flatten the ``y`` array and you are passing a 2d ``Y_1``). I included them in this PR [1] w

Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Nikit Saraf
Hi Peter It is most probably 0.11.I'm not so sure, It can be older version too. Regards Nikit Saraf On Fri, Jul 6, 2012 at 1:39 AM, Peter Prettenhofer < [email protected]> wrote: > Nikit, > which version of sklearn do you use? master or 0.11? > > best, > Peter > > 2012/7/5 Nikit S

Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Peter Prettenhofer
Nikit, which version of sklearn do you use? master or 0.11? best, Peter 2012/7/5 Nikit Saraf : > Hi Peter > > Thanks for the reply. > > dtype of Y_1 is 'string64' and its shape is (12137,1) > dtype of X_1 is 'float64" and its shape is (12137,100) > > And here is the example of 10 cases http://

Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Nikit Saraf
Hi Peter Thanks for the reply. dtype of Y_1 is 'string64' and its shape is (12137,1) dtype of X_1 is 'float64" and its shape is (12137,100) And here is the example of 10 cases http://paste.ubuntu.com/1077028/ It would be great if you could point out where I'm going wrong.Thank you so much for t

Re: [Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Peter Prettenhofer
Hi Nikit, thanks for reporting - I added a test case for symbolic class labels and it works ok (class labels get mapped to internal class ids prior to fitting; see gradient_boosting.py:629:631) - I think the source of the error is something different. Can you check the dtype and shape of ``Y_1``?

[Scikit-learn-general] Possible Bug in GradientBoostingClassifier

2012-07-05 Thread Nikit Saraf
I was trying to train a Character Recognition Model with the help of GradientBoostingClassifier. When i tried to run, it gave me the following error :- Traceback (most recent call last): File "charRecog.py", line 23, in clf = GradientBoostingClassifier().fit(X_1,Y_1) File "/usr/local/lib/