(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
相關文章
相關標籤/搜索