📜  如何在python代码示例中使用随机树

📅  最后修改于: 2022-03-11 14:47:21.232000             🧑  作者: Mango

代码示例3
from sklearn import metrics

print('Mean Absolute Error:', metrics.mean_absolute_error(y_test, y_pred))
print('Mean Squared Error:', metrics.mean_squared_error(y_test, y_pred))
print('Root Mean Squared Error:', np.sqrt(metrics.mean_squared_error(y_test, y_pred)))