Are there any python libraries that do multiple regressions?

0 votes
Are there any python libraries that do multiple regressions?
May 22 in Machine Learning by Laya
15 views

1 answer to this question.

0 votes

You can use sklearn.linear_model.LinearRegression. Something like this:

from sklearn import linear_model
clf = linear_model.LinearRegression()
clf.fit([[getattr(t, 'x%d' % i) for i in range(1, 8)] for t in texts],
        [t.y for t in texts])
answered May 22 by Vinay

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer

What are different types of regressions?

There are three types of regressions: Linear regression: Linear ...READ MORE

answered May 9 in Machine Learning by Jinu
34 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 134 views
0 votes
1 answer
0 votes
1 answer

Example to run KNN algorithm using python

Have a look at this one: from sklearn.datasets ...READ MORE

answered May 8 in Machine Learning by Harvy
47 views