[26] | 1 | /*************************************************************************/ |
---|
| 2 | /* */ |
---|
| 3 | /* Global data for C4.5 */ |
---|
| 4 | /* -------------------- */ |
---|
| 5 | /* */ |
---|
| 6 | /*************************************************************************/ |
---|
| 7 | |
---|
[74] | 8 | #define MAX_DISCR_VAL 50 |
---|
| 9 | #define MAX_CLASS 50 |
---|
| 10 | #define MAX_ATT 50 |
---|
[26] | 11 | |
---|
[74] | 12 | |
---|
[26] | 13 | extern short MaxAtt, /* max att number */ |
---|
| 14 | MaxClass, /* max class number */ |
---|
| 15 | MaxDiscrVal; /* max discrete values for any att */ |
---|
| 16 | |
---|
| 17 | extern ItemNo MaxItem; /* max data item number */ |
---|
| 18 | |
---|
| 19 | extern Description *Item; /* data items */ |
---|
| 20 | |
---|
| 21 | extern DiscrValue *MaxAttVal; /* number of values for each att */ |
---|
| 22 | |
---|
| 23 | extern char *SpecialStatus; /* special att treatment */ |
---|
| 24 | |
---|
| 25 | extern String *ClassName, /* class names */ |
---|
| 26 | *AttName, /* att names */ |
---|
| 27 | **AttValName, /* att value names */ |
---|
| 28 | FileName; /* family name of files */ |
---|
| 29 | |
---|
| 30 | extern Boolean AllKnown; /* true if there have been no splits |
---|
| 31 | on atts with missing values above |
---|
| 32 | the current position in the tree */ |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | /*************************************************************************/ |
---|
| 36 | /* */ |
---|
| 37 | /* Global parameters for C4.5 */ |
---|
| 38 | /* -------------------------- */ |
---|
| 39 | /* */ |
---|
| 40 | /*************************************************************************/ |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | extern short VERBOSITY, /* verbosity level (0 = none) */ |
---|
| 44 | TRIALS; /* number of trees to be grown */ |
---|
| 45 | |
---|
| 46 | extern Boolean GAINRATIO, /* true=gain ratio, false=gain */ |
---|
| 47 | SUBSET, /* true if subset tests allowed */ |
---|
| 48 | BATCH, /* true if windowing turned off */ |
---|
| 49 | UNSEENS, /* true if to evaluate on test data */ |
---|
| 50 | PROBTHRESH; /* true if to use soft thresholds */ |
---|
| 51 | |
---|
| 52 | extern ItemNo MINOBJS, /* minimum items each side of a cut */ |
---|
| 53 | WINDOW, /* initial window size */ |
---|
| 54 | INCREMENT; /* max window increment each iteration */ |
---|
| 55 | |
---|
| 56 | extern float CF; /* confidence limit for tree pruning */ |
---|