Python
小曦1024
数据初学者
展开
-
划分数据集,实现决策树,评价得分,可视化
决策树实现 import os import pydotplus from odps.df.backends import pd from sklearn import tree from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier data = op...原创 2020-01-09 17:50:42 · 376 阅读 · 0 评论 -
从读取数据数据预处理到卡方检验
from odps.df.backends import pd from sklearn.decomposition import PCA from sklearn.feature_selection import SelectKBest, chi2 from sklearn.preprocessing import LabelEncoder data = open(r'new.csv')#缓冲...原创 2020-01-09 16:41:23 · 438 阅读 · 1 评论