Answers for "sklearn"

3

sklearn

pip install -U scikit-learn
Posted by: Guest on December-01-2020
0

sklearn

from sklearn import linear_model
regr = linear_model.LinearRegression()
train_x = np.asanyarray(train[['ENGINESIZE']])
train_y = np.asanyarray(train[['CO2EMISSIONS']])
regr.fit (train_x, train_y)
# The coefficients
print ('Coefficients: ', regr.coef_)
print ('Intercept: ',regr.intercept_)
Posted by: Guest on January-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language