Answers for "Multiple Regression"

0

Multiple Regression

from sklearn import linear_model
regr = linear_model.LinearRegression()
x = np.asanyarray(train[['ENGINESIZE','CYLINDERS','FUELCONSUMPTION_COMB']])
y = np.asanyarray(train[['CO2EMISSIONS']])
regr.fit (x, y)
# The coefficients
print ('Coefficients: ', regr.coef_)
Posted by: Guest on January-27-2021

Code answers related to "Multiple Regression"

Browse Popular Code Answers by Language