摘要: 流程分析: 特征值 目标值 1)获取数据 2)数据处理 缺失数据处理 特征值——>字典类型 3)准备好特征值 目标值 4)划分数据集 5)特征工程:字典特征抽取 6)决策树预估器流程 7)模型评估 def decisioncls(): """ 决策树进行乘客生存预测 :return: """ # 1 阅读全文
posted @ 2022-06-20 22:05 安全地带IV 阅读(142) 评论(0) 推荐(0)
摘要: def knn_iris(): # 获取数据 iris = load_iris() # 划分数据集 x_train, x_test, y_train, y_test = train_test_split(iris.data, iris.target, random_state=22) # 特征工程: 阅读全文
posted @ 2022-06-20 15:20 安全地带IV 阅读(46) 评论(0) 推荐(0)
摘要: GRE备考 阅读全文
posted @ 2022-04-08 12:16 安全地带IV 阅读(43) 评论(0) 推荐(0)