第一次在cpanel上安装nodejs后,它会运行并正常运行,但是当我再次运行它时,会出现错误:“找不到命令”。
train_x = df.drop(["ET"], axis=1)
train_y = df["ET"]
test_x = test.drop(["ET"], axis=1)
test_y = test["ET"]
from sklearn.linear_model import LinearRegression
model = LinearRegression()
model.fit(train_x, train_y)
model.score(test_x, test_y)
check = lambda x : 'Negative relationship' if x<0 else 'Positive relationship'
for i in range(len(train_x.columns)):
print('About %s, the coefficient value is %s , Waiting time is %s.'%(train_x.columns[i], model.coef_[i], check(model.coef_[i])))
(mse) = mean_squared_error(y_test, forcast)
print('constant term is %s.' % (model.intercept_))
print(mse) = mean_squared_error(y_test, prediction)