Package weka.classifiers.trees.j48
Class NBTreeModelSelection
- java.lang.Object
-
- weka.classifiers.trees.j48.ModelSelection
-
- weka.classifiers.trees.j48.NBTreeModelSelection
-
- All Implemented Interfaces:
Serializable,RevisionHandler
public class NBTreeModelSelection extends ModelSelection
Class for selecting a NB tree split.- Version:
- $Revision$
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NBTreeModelSelection(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.StringgetRevision()Returns the revision string.ClassifierSplitModelselectModel(Instances data)Selects NBTree-type split for the given dataset.ClassifierSplitModelselectModel(Instances train, Instances test)Selects NBTree-type split for the given dataset.
-
-
-
Constructor Detail
-
NBTreeModelSelection
public NBTreeModelSelection(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).
-
-
Method Detail
-
cleanup
public void cleanup()
Sets reference to training data to null.
-
selectModel
public final ClassifierSplitModel selectModel(Instances data) throws Exception
Selects NBTree-type split for the given dataset.- Specified by:
selectModelin classModelSelection- Throws:
Exception- if model can't be selected
-
selectModel
public final ClassifierSplitModel selectModel(Instances train, Instances test) throws Exception
Selects NBTree-type split for the given dataset.- Overrides:
selectModelin classModelSelection- Throws:
Exception- if model can't be selected
-
getRevision
public String getRevision()
Returns the revision string.- Returns:
- the revision
-
-