Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Andreas Mueller
-bonn.de>> An: [email protected] <mailto:[email protected]> Gesendet: Donnerstag, 19. Juli 2012 20:39:07 Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work I can

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Zach Bastick
forge.net <mailto:[email protected]> Gesendet: Donnerstag, 19. Juli 2012 20:29:47 Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work I don't understand how it works on your side. I tried: Uni

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Andreas Müller
Thanks. I knew there was something like that. - Ursprüngliche Mail - > Von: "Warren Weckesser" > An: [email protected] > Gesendet: Donnerstag, 19. Juli 2012 21:42:47 > Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't w

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Warren Weckesser
2ae54f > > The corresponding ticket: https://github.com/scikit-learn/scikit-learn/issues/652 Warren > > Warren > > > >> >> - Ursprüngliche Mail - >> Von: "Andreas Müller" >> An: [email protected] >> Gese

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Warren Weckesser
tag, 19. Juli 2012 20:39:07 > Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work > > I can reproduce the error. > Weird. Looking into it. > > - Ursprüngliche Mail - > Von: "Zach Bastick" > An: [email protected]

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Andreas Müller
:52 Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work I'm on Windows 7. That makes 3 of us with the bug. Ordinary Least Squares (OLS) Regression is something so common that I don't understand why no one noticed this before. I really need it to work, so if anyone

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Zach Bastick
Von: "Andreas Müller" > An: [email protected] > Gesendet: Donnerstag, 19. Juli 2012 20:39:07 > Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work > > I can reproduce the error. > Weird. Looking into it. > >

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Andreas Müller
[email protected] Gesendet: Donnerstag, 19. Juli 2012 20:39:07 Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work I can reproduce the error. Weird. Looking into it. - Ursprüngliche Mail - Von: "Zach Bastick" An: [email protected]

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Warren Weckesser
On Thu, Jul 19, 2012 at 2:29 PM, Zach Bastick wrote: > I don't understand how it works on your side. I tried: > Uninstalling ALL python modules and python, and reinstalling only > python, numpy, scipy and Scikit-learn > Uninstalling ALL python modules and python, and installing Enthought > Python,

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Andreas Müller
I can reproduce the error. Weird. Looking into it. - Ursprüngliche Mail - Von: "Zach Bastick" An: [email protected] Gesendet: Donnerstag, 19. Juli 2012 20:29:47 Betreff: Re: [Scikit-learn-general] LinearRegression() doesn't work I don't und

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Zach Bastick
I don't understand how it works on your side. I tried: Uninstalling ALL python modules and python, and reinstalling only python, numpy, scipy and Scikit-learn Uninstalling ALL python modules and python, and installing Enthought Python, and I still get the same error. This happens, running Python i

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-19 Thread Jaques Grobler
Works on my side as well.. Can't reproduce your error. 2012/7/19 Gael Varoquaux > On Wed, Jul 18, 2012 at 05:50:16PM -0400, Zach Bastick wrote: > > But this doesn't: > > clf.fit([[0, 0, 0], [1, 1, 1]], [0, 1]) > > Works for me. > > I don't understand what excatly is your problem. > > Gael > > >

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-18 Thread Gael Varoquaux
On Wed, Jul 18, 2012 at 05:50:16PM -0400, Zach Bastick wrote: > But this doesn't: > clf.fit([[0, 0, 0], [1, 1, 1]], [0, 1]) Works for me. I don't understand what excatly is your problem. Gael -- Live Security Virtual Co

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-18 Thread Zach Bastick
Jake, I'm using 0.11 Another example is that this works: clf.fit([[0, 0], [1, 1]], [0, 1]) But this doesn't: clf.fit([[0, 0, 0], [1, 1, 1]], [0, 1]) I'm not sure whether this is related, but I installed Pyth yesterday.. http://pypi.python.org/pypi/pyth/ Zach On 18/07/2012 17:41, Jake Vanderpl

Re: [Scikit-learn-general] LinearRegression() doesn't work

2012-07-18 Thread Jake Vanderplas
Zach, For your second snippet, I get this output using the dev version of scikit-learn: coef array [ 0. 0. 0.] length 3 getting value 0: 0. getting value 1: 0. What version of scikit-learn are you using? You can find out by runni

[Scikit-learn-general] LinearRegression() doesn't work

2012-07-18 Thread Zach Bastick
I'm having trouble with linear_model.LinearRegression() This works: from sklearn import linear_model clf = linear_model.LinearRegression() clf.fit ([[0, 0, 0], [1, 1, 1], [2, 2, 2]], [0, 1, 2]) # clf.fit([[394, 3878, 13, 4, 0, 0],[384, 10175, 14, 4, 0, 0]],[3,9]) print 'coef array',clf.coef_ prin