【发布时间】:2021-11-13 19:09:17
【问题描述】:
我有一个梯度提升回归模型,我想将其结果保存到 csv。
from sklearn import ensemble
clf = ensemble.GradientBoostingRegressor(n_estimators = 400, max_depth = 5, min_samples_split = 2,
learning_rate = 0.1, loss = 'squared_error')
clf.fit(x_train, y_train)
我想查看实际值和预测值。
【问题讨论】:
-
所以你想保存
y_test和/或y_train这是预测? -
ImSo3K,这是正确的。我假设我可以看到实际值、预测值,并从那里计算误差。
标签: python machine-learning scikit-learn