C4.5 Format
来源:互联网 发布:立健亭止咳药水 知乎 编辑:程序博客网 时间:2024/06/06 19:29
This information is from the C4.5 distribution.
FILE FORMATS
For a dataset named "foo", you will have three files: foo.data, foo.test, and foo.names (many datasets don't come with .test files, you should use batchtest to perform cross-validation on such datasets). The .names file describes the dataset, while the .data and .test files contain the examples which make up the dataset.
The files contain series of identifiers and numbers with some surrounding syntax. A | (vertical bar) means that the remainder of the line should be ignored as a comment. Each identifier consists of a string of characters that does not include comma, question mark or colon (unless escaped by a backslash). Periods may be embedded provided they are not followed by a space. Embedded whitespce is also permitted but multiple whitespace is replaced by a single space.
The .names file contains a series of entries that describe the classes, attributes and values of the dataset. Each entry is terminated with a period, but the period can be omited if it would have been the last thing on a line. The first entry in the file lists the names of the classes, separated by commas (and terminated by a period). Each successive line then defines an attribute, in the order in which they will appear in the .data and .test files, with the following format:
attribute-name : attribute-type .
The attribute-name is an identifier as above, followed by a colon, then the attribute type which must be one of:
- continuous
- If the attribute has a continuous value.
- discrete <n>
- The word 'discrete' followed by an integer which indicates how many values the attribute can take.
- <list of identifiers>
- This is a discrete attribute with the values enumerated (this is the prefered method for discrete attributes). The identifiers should be separated by commas.
- ignore
- means the attribute should be ignored - it won't be used.
Here is an example .names file:
good, bad.
dur: continuous.
wage1: continuous.
wage2: continuous.
wage3: continuous.
cola: tc, none, tcf.
hours: continuous.
pension: empl_contr, ret_allw, none.
stby_pay: continuous.
shift_diff: continuous.
educ_allw: yes, no.
holidays: continuous.
vacation: average, generous, below_average.
lngtrm_disabil: yes, no.
dntl_ins: half, none, full.
bereavement: yes, no.
empl_hplan: half, full, none.
Foo.data contains the training examples and foo.test contains the test examples, in the following format: one example per line, attribute values separated by commas, class last, missing values represented by "?". For example:
2,5.0,4.0,?,none,37,?,?,5,no,11,below_average,yes,full,yes,full,good
3,2.0,2.5,?,?,35,none,?,?,?,10,average,?,?,yes,full,bad
3,4.5,4.5,5.0,none,40,?,?,?,no,11,average,?,half,?,?,good
3,3.0,2.0,2.5,tc,40,none,?,5,no,10,below_average,yes,half,yes,full,bad
...
- C4.5 Format
- C4.5
- C4.5
- C4.5
- Using c4.5
- C4.5主要改进
- 决策树c4.5编译,
- 分类:ID3,C4.5
- C4.5算法
- C4.5决策树算法
- C4.5 决策树
- C4.5决策树
- c4.5代码分析
- 决策树C4.5
- C4.5决策树
- C4.5算法
- c4.5算法
- C4.5决策树算法
- mvn依赖
- Android 中关于 【Cursor】 类的介绍
- Cocos2d-x中的那些坑--ScrollView,ClippingNode在Android上显示不正常的解决方法
- 设置s:radio的默认值
- 网络之间互连的协议
- C4.5 Format
- cocos2d-x 2.0升级为3.0一些常见变化纪录
- 站长工具是站长的必备工具
- 自定义栈数据结构,并且实现取出栈中最小元素
- How to Make Great App Store Screenshots
- Sqlite3通过Makefile编译成动态链接库
- 易学易用
- XXX系统开发小结(SSH+Jquery EasyUI)
- CCSprite 灰白图的生成