热线电话:13121318867

登录
2019-07-08 阅读量: 450
python如何将决策树回归器拟合到数据集

python如何将决策树回归器拟合到数据集

# import the regressor

from sklearn.tree import DecisionTreeRegressor

# create a regressor object

regressor = DecisionTreeRegressor(random_state = 0)

# fit the regressor with X and Y data

regressor.fit(X, y)

0.0000
1
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子