public class C45ModelSelection extends ModelSelection
| Modifier and Type | Field and Description |
|---|---|
protected Instances |
m_allData
All the training data
|
protected boolean |
m_doNotMakeSplitPointActualValue
Do not relocate split point to actual data value
|
protected int |
m_minNoObj
Minimum number of objects in interval.
|
protected boolean |
m_useMDLcorrection
Use MDL correction?
|
| Constructor and Description |
|---|
C45ModelSelection(int minNoObj,
Instances allData,
boolean useMDLcorrection,
boolean doNotMakeSplitPointActualValue)
Initializes the split selection method with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Sets reference to training data to null.
|
java.lang.String |
getRevision()
Returns the revision string.
|
ClassifierSplitModel |
selectModel(Instances data)
Selects C4.5-type split for the given dataset.
|
ClassifierSplitModel |
selectModel(Instances train,
Instances test)
Selects C4.5-type split for the given dataset.
|
protected final int m_minNoObj
protected final boolean m_useMDLcorrection
protected Instances m_allData
protected final boolean m_doNotMakeSplitPointActualValue
public C45ModelSelection(int minNoObj,
Instances allData,
boolean useMDLcorrection,
boolean doNotMakeSplitPointActualValue)
minNoObj - minimum number of instances that have to occur in at least two subsets induced by splitallData - FULL training dataset (necessary for selection of split points).useMDLcorrection - whether to use MDL adjustement when finding splits on numeric attributesdoNotMakeSplitPointActualValue - if true, split point is not relocated by scanning the entire dataset for the closest
data valuepublic void cleanup()
public final ClassifierSplitModel selectModel(Instances data) throws java.lang.InterruptedException
selectModel in class ModelSelectionjava.lang.InterruptedExceptionpublic final ClassifierSplitModel selectModel(Instances train, Instances test) throws java.lang.InterruptedException
selectModel in class ModelSelectionjava.lang.InterruptedExceptionpublic java.lang.String getRevision()