摘要:
from sklearn import tree from sklearn.cross_validation import train_test_split # 数据拆分 train_x, test_x, train_y, test_y = train_test_split(housing.data, housing.target, test_size=0.1, random_state=42... 阅读全文
posted @ 2019-01-17 09:48
python我的最爱
阅读(509)
评论(0)
推荐(0)
摘要:
from sklearn import tree from sklearn.datasets.california_housing import fetch_california_housing housing = fetch_california_housing() dtr = tree.Deci 阅读全文
posted @ 2019-01-17 09:35
python我的最爱
阅读(2029)
评论(0)
推荐(0)
浙公网安备 33010602011771号