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