Class C45ModelSelection
- java.lang.Object
-
- org.processmining.plugins.workshop.Yaguang.WekaDiscriminationTree.ModelSelection
-
- org.processmining.plugins.workshop.Yaguang.WekaDiscriminationTree.C45ModelSelection
-
- All Implemented Interfaces:
java.io.Serializable
public class C45ModelSelection extends ModelSelection
Class for selecting a C4.5-type split for a given dataset.- Version:
- $Revision: 1.8 $y
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleannoSA
-
Constructor Summary
Constructors Constructor Description C45ModelSelection()C45ModelSelection(int minNoObj, Instances allData)Initializes the split selection method with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Sets reference to training data to null.ClassifierSplitModelselectModel(Instances data)Selects a model for the given dataset.ClassifierSplitModelselectModel(Instances train, Instances test)Selects C4.5-type split for the given dataset.
-
-
-
Constructor Detail
-
C45ModelSelection
public C45ModelSelection(int minNoObj, Instances allData)Initializes the split selection method with the given parameters.- Parameters:
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).
-
C45ModelSelection
public C45ModelSelection()
-
-
Method Detail
-
cleanup
public void cleanup()
Sets reference to training data to null.
-
selectModel
public final ClassifierSplitModel selectModel(Instances data)
Description copied from class:ModelSelectionSelects a model for the given dataset.- Specified by:
selectModelin classModelSelection
-
selectModel
public final ClassifierSplitModel selectModel(Instances train, Instances test)
Selects C4.5-type split for the given dataset.- Overrides:
selectModelin classModelSelection
-
-