weka.classifiers.trees.j48

## Class ModelSelection

- java.lang.Object
- - weka.classifiers.trees.j48.ModelSelection

- All Implemented Interfaces:
    java.io.Serializable, RevisionHandler
  Direct Known Subclasses:
    BinC45ModelSelection, C45ModelSelection, NBTreeModelSelection, ResidualModelSelection

      public abstract class ModelSelection
      extends java.lang.Object
      implements java.io.Serializable, RevisionHandler

  Abstract class for model selection criteria.
  Version:
    $Revision: 8034 $
  Author:
    Eibe Frank (eibe@cs.waikato.ac.nz)
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ModelSelection()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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 java.lang.Exception

      Selects a model for the given dataset.
      Throws:
        `java.lang.Exception` - if model can't be selected

    - #### selectModel

          public ClassifierSplitModel selectModel(Instances train,
                                         Instances test)
                                           throws java.lang.Exception

      Selects a model for the given train data using the given test data
      Throws:
        `java.lang.Exception` - if model can't be selected