All Projects → Linzecong → DecisionTree

Linzecong / DecisionTree

Licence: other
The realization of decision tree learning algorithm-----C++ Version,决策树学习算法,C++实现

Programming Languages

C++
36643 projects - #6 most used programming language

DecisionTree

The realization of decision tree learning algorithm-----C++ Version,决策树学习算法,C++实现

代码中有详细注释

此决策树采用最普通的ID3算法

输入格式 先输入分类属性的数量 再输入训练样例,比如有如下属性和训练样例

年龄:幼儿,儿童,少年,青年,中年,老年 压力:小,中,大 是否幸福:不幸福,普通,很幸福

样例: 1.幼儿 小 很幸福 2.儿童 中 普通 3.少年 中 不幸福

则对应的输入为 6 0 3 0 3 1 0 0 2 0 1 1 1 0 2 1 0 1

项目中有一个简单的训练样例

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].