Are there any python libraries that do multiple regressions?

0 votes
Are there any python libraries that do multiple regressions?
May 22, 2019 in Machine Learning by Laya
67 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, 2019 by Vinay

Related Questions In Machine Learning

0 votes
1 answer

Are there different types of reinforcements?

There are two types of reinforcements - ...READ MORE

answered May 8, 2019 in Machine Learning by Mishra
107 views
0 votes
1 answer

What are different types of regressions?

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

answered May 9, 2019 in Machine Learning by Jinu
342 views
0 votes
1 answer
+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, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,350 views
0 votes
0 answers
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, 2019 in Machine Learning by Harvy
459 views