weka.classifiers.j48
Class ModelSelection
java.lang.Object
|
+--weka.classifiers.j48.ModelSelection
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- BinC45ModelSelection, C45ModelSelection
- public abstract class ModelSelection
- extends Object
- implements Serializable
Abstract class for model selection criteria.
- Version:
- $Revision: 1.4 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModelSelection
public ModelSelection()
selectModel
public abstract ClassifierSplitModel selectModel(Instances data)
throws Exception
- Selects a model for the given dataset.
- Throws:
Exception
- if model can't be selected
selectModel
public ClassifierSplitModel selectModel(Instances train,
Instances test)
throws Exception
- Selects a model for the given train data using the given test data
- Throws:
Exception
- if model can't be selected