标签: regression decision-tree sklearn-pandas confidence-interval
是否可以通过python决策树回归输出的预测附加某种信心?
from sklearn.tree import DecisionTreeRegressor dt = DecisionTreeRegressor(random_state=0, criterion="mae") dt_fit = dt.fit(X_train, y_train) y_pred = dt_fit.predict(X_test)
答案 0 :(得分:0)
您可以使用dt_fit.predict_proba(X_test)
dt_fit.predict_proba(X_test)