Class IteratedSingleClassifierEnhancer

    • Constructor Detail

      • IteratedSingleClassifierEnhancer

        public IteratedSingleClassifierEnhancer()
    • Method Detail

      • buildClassifier

        public void buildClassifier​(Instances data)
                             throws java.lang.Exception
        Stump method for building the classifiers.
        Specified by:
        buildClassifier in class Classifier
        Parameters:
        data - the training data to be used for generating the bagged classifier.
        Throws:
        java.lang.Exception - if the classifier could not be built successfully
      • setOptions

        public void setOptions​(java.lang.String[] options)
                        throws java.lang.Exception
        Parses a given list of options. Valid options are:

        -W classname
        Specify the full class name of the base learner.

        -I num
        Set the number of iterations (default 10).

        Options after -- are passed to the designated classifier.

        Specified by:
        setOptions in interface OptionHandler
        Overrides:
        setOptions in class SingleClassifierEnhancer
        Parameters:
        options - the list of options as an array of strings
        Throws:
        java.lang.Exception - if an option is not supported
      • numIterationsTipText

        public java.lang.String numIterationsTipText()
        Returns the tip text for this property
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • setNumIterations

        public void setNumIterations​(int numIterations)
        Sets the number of bagging iterations
      • getNumIterations

        public int getNumIterations()
        Gets the number of bagging iterations
        Returns:
        the maximum number of bagging iterations