Class LeanMultiScheme

  • All Implemented Interfaces:
    Serializable, Cloneable, weka.classifiers.Classifier, weka.core.BatchPredictor, weka.core.CapabilitiesHandler, weka.core.CapabilitiesIgnorer, weka.core.CommandlineRunnable, weka.core.OptionHandler, weka.core.Randomizable, weka.core.RevisionHandler

    public class LeanMultiScheme
    extends weka.classifiers.meta.MultiScheme
    Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).
    Only keeps the best classifier as trained model, never trains the array of specified classifiers.

    Valid options are:

     -X <number of folds>
      Use cross validation for model selection using the
      given number of folds. (default 0, is to
      use training error)
     -S <num>
      Random number seed.
      (default 1)
     -B <classifier specification>
      Full class name of classifier to include, followed
      by scheme options. May be specified multiple times.
      (default: "weka.classifiers.rules.ZeroR")
     -output-debug-info
      If set, classifier is run in debug mode and
      may output additional info to the console
     -do-not-check-capabilities
      If set, classifier capabilities are not checked before classifier is built
      (use with caution).
     
     Options specific to classifier weka.classifiers.rules.ZeroR:
     
     -output-debug-info
      If set, classifier is run in debug mode and
      may output additional info to the console
     -do-not-check-capabilities
      If set, classifier capabilities are not checked before classifier is built
      (use with caution).
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class weka.classifiers.meta.MultiScheme

        m_Classifier, m_ClassifierIndex, m_NumXValFolds
      • Fields inherited from class weka.classifiers.RandomizableMultipleClassifiersCombiner

        m_Seed
      • Fields inherited from class weka.classifiers.MultipleClassifiersCombiner

        m_Classifiers
      • Fields inherited from class weka.classifiers.AbstractClassifier

        BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
    • Constructor Summary

      Constructors 
      Constructor Description
      LeanMultiScheme()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      weka.classifiers.Classifier getClassifier​(int index)
      Gets a single classifier from the set of available classifiers.
      String globalInfo()
      Returns a string describing classifier
      • Methods inherited from class weka.classifiers.meta.MultiScheme

        buildClassifier, classifiersTipText, debugTipText, distributionForInstance, getBestClassifierIndex, getClassifiers, getClassifierSpec, getDebug, getNumFolds, getOptions, getRevision, getSeed, listOptions, main, numFoldsTipText, seedTipText, setClassifiers, setDebug, setNumFolds, setOptions, setSeed, toString
      • Methods inherited from class weka.classifiers.MultipleClassifiersCombiner

        getCapabilities, postExecution, preExecution
      • Methods inherited from class weka.classifiers.AbstractClassifier

        batchSizeTipText, classifyInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDoNotCheckCapabilities, setNumDecimalPlaces
    • Constructor Detail

      • LeanMultiScheme

        public LeanMultiScheme()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing classifier
        Overrides:
        globalInfo in class weka.classifiers.meta.MultiScheme
        Returns:
        a description suitable for displaying in the explorer/experimenter gui
      • getClassifier

        public weka.classifiers.Classifier getClassifier​(int index)
        Gets a single classifier from the set of available classifiers.
        Overrides:
        getClassifier in class weka.classifiers.meta.MultiScheme
        Parameters:
        index - the index of the classifier wanted
        Returns:
        the Classifier