Teeerry / decision-tree

决策树实战案例

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

decision-tree

决策树实战案例

1. Plot the decision surface of a decision tree on the iris dataset

参考资料

  1. Plot the decision surface of a decision tree on the iris dataset

问题描述

使用sklearn的决策树接口实现鸢尾花分类

实现代码

  1. plot_iris_dtc.py

2. 使用决策树预测隐形眼镜类型

参考资料

  1. 机器学习实战 示例3.4

问题描述

本节我们通过一个例子讲解决策树如何预测患者需佩戴的隐形眼镜类型。使用小数据集,我们就可以用决策树学到知识:眼科医生是如何判断患者需佩戴的镜片类型。一旦理解了决策树的工作原理,我们也可以帮助人们判断需佩戴的镜片类型。 实现代码

  1. choose_best_glasses.py

About

决策树实战案例

License:MIT License


Languages

Language:Python 100.0%