Answers for "linearregression in python"

0

linear regression in python

from sklearn.linear_model import LinearRegression
lm = LinearRegression()
lm.fit(X, y)
Posted by: Guest on May-09-2021
0

python linear regression

>>> from scipy import stats
>>> import numpy as np
>>> x = np.random.random(10)
>>> y = np.random.random(10)
>>> slope, intercept, r_value, p_value, std_err = stats.linregress(x,y)
Posted by: Guest on May-18-2021

Code answers related to "linearregression in python"

Python Answers by Framework

Browse Popular Code Answers by Language