On Thu, Jul 19, 2012 at 2:45 PM, Andreas Müller <[email protected]>wrote:
> Oh, I'm on 0.11 btw on work and this is windows so I won't bother checking
> out.
> Was this fixed recently? It seems a weird bug, though.
> So for two dim cases we get coef_.shape = (2,), for three-dim we get (1, 3)
>
Looks like it was fixed here:
https://github.com/scikit-learn/scikit-learn/commit/d0b20f0a21ba42b85375b1fbc7202dc3962ae54f
Warren
>
> ----- Ursprüngliche Mail -----
> Von: "Andreas Müller" <[email protected]>
> 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.
>
> ----- Ursprüngliche Mail -----
> Von: "Zach Bastick" <[email protected]>
> An: [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:
> 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 in DOS. I even tried typing it out line
> by line in IPython, and I still get a list of lists, instead of just a
> list with the coefficents:
>
> from sklearn import linear_model
> clf = linear_model.LinearRegression()
> clf.fit([[0,0,0],[1,1,1]],[0,1])
> Out[3]: LinearRegression(copy_X=True, fit_intercept=True, normalize=False)
> print clf.coef_
> [[ 0.33333333 0.33333333 0.33333333]]
>
> It should print: [ 0.33333333 0.33333333 0.33333333] instead of the
> double brackets. Any idea what I can do to get this to work?
>
> Zach
>
> On 19 July 2012 04:40, Jaques Grobler <[email protected]> wrote:
> > Works on my side as well.. Can't reproduce your error.
> >
> > 2012/7/19 Gael Varoquaux <[email protected]>
> >>
> >> 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 Conference
> >> Exclusive live event will cover all the ways today's security and
> >> threat landscape has changed and how IT managers can respond.
> Discussions
> >> will include endpoint security, mobile security and the latest in
> malware
> >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> >> _______________________________________________
> >> Scikit-learn-general mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > Scikit-learn-general mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general