(DecisionTreeRegressor)决策树回归预测实例-max_depth 学习笔记

import numpy as np from sklearn.tree import DecisionTreeRegressor import matplotlib.pyplot as plt %matplotlib inline n = 100 x = np.random.rand(n)*6 - 3 x.sort() y = np.sin(x) + np.random.rand(n) + 0
相关文章
相关标签/搜索