weka.classifiers.trees.j48
Class ModelSelection

java.lang.Object
  extended by weka.classifiers.trees.j48.ModelSelection
All Implemented Interfaces:
Serializable, RevisionHandler
Direct Known Subclasses:
BinC45ModelSelection, C45ModelSelection, NBTreeModelSelection, ResidualModelSelection

public abstract class ModelSelection
extends Object
implements Serializable, RevisionHandler

Abstract class for model selection criteria.

Version:
$Revision: 8034 $
Author:
Eibe Frank ([email protected])
See Also:
Serialized Form

Constructor Summary
ModelSelection()
           
 
Method Summary
abstract  ClassifierSplitModel selectModel(Instances data)
          Selects a model for the given dataset.
 ClassifierSplitModel selectModel(Instances train, Instances test)
          Selects a model for the given train data using the given test data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface weka.core.RevisionHandler
getRevision
 

Constructor Detail

ModelSelection

public ModelSelection()
Method Detail

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


Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.