Re: [Scikit-learn-general] multivariate regression with higher degree polynomials

2012-08-07 Thread Mathieu Blondel
Another solution is to use SVR(kernel="poly", degree=2). Mathieu -- 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 r

Re: [Scikit-learn-general] multivariate regression with higher degree polynomials

2012-08-07 Thread Mathieu Blondel
The following example explains how to do it using the numpy.vander function: http://scikit-learn.org/stable/auto_examples/linear_model/plot_polynomial_interpolation.html Mathieu On Wed, Aug 8, 2012 at 11:27 AM, Zach Bastick wrote: > How can you increase the degree of the polynomial for multivari

[Scikit-learn-general] multivariate regression with higher degree polynomials

2012-08-07 Thread Zach Bastick
How can you increase the degree of the polynomial for multivariate LinearRegression? Numpy.polyfit has a "deg" parameter, allowing you to choose the degree of the fitting polynomial, but doesn't work with multivariate data: http://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html F

[Scikit-learn-general] trying scikit-learn-0.11

2012-08-07 Thread Andres Soto
I am trying http://scikit-learn.org/stable/modules/feature_extraction.html#text-feature-extraction (6.2.2.3. Common Vectorizer usage). I did from sklearn.feature_extraction.text import CountVectorizer vectorizer = CountVectorizer() print vectorizer corpus = [     'This is the first document.',   

[Scikit-learn-general] scikit-learn-0.11

2012-08-07 Thread Andres Soto
according to http://scikit-learn.org/stable/modules/feature_extraction.html#text-feature-extraction (6.2.2.3. Common Vectorizer usage), I did: >>> from sklearn.feature_extraction.text import CountVectorizer >>> vectorizer = CountVectorizer() but I get >>> vectorizer CountVectorizer(analyzer=Wor

Re: [Scikit-learn-general] scikit-learn-0.11 vs scikit-learn-0.9

2012-08-07 Thread Andres Soto
I tried to import DictVectorizer from sklearn.feature_extraction and I got an error: why? >>> from sklearn.feature_extraction import DictVectorizer Traceback (most recent call last):   File "", line 1, in     from sklearn.feature_extraction import DictVectorizer ImportError: cannot import name

Re: [Scikit-learn-general] test windows build for PR 899

2012-08-07 Thread Alexandre Gramfort
thanks the branch just got merged :) Alex On Mon, Aug 6, 2012 at 2:33 PM, federico vaggi wrote: > Worked - here is the build log. > > > > On Mon, Aug 6, 2012 at 1:34 PM, Alexandre Gramfort > wrote: >> >> hi federico, >> >> have you followed the discussion on the PR: >> >> https://github.com/sc