Class TestLibSVM

  • All Implemented Interfaces:
    ec.Prototype, ec.Setup, ec.simple.SimpleProblemForm, java.io.Serializable, java.lang.Cloneable

    public class TestLibSVM
    extends FSSubsetProblem
    Test SVM as a wrapper classifier
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TestLibSVM()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ec.util.Parameter defaultBase()
      Return the default base for this problem
      void evaluate​(ec.EvolutionState state, ec.Individual ind, int subpopulation, int threadnum)
      Evaluate the individual (if not already evaluated)
      void setup​(ec.EvolutionState state, ec.util.Parameter base)
      Set up the problem by reading it from the parameters stored in state, built off of the parameter base base.
      • Methods inherited from class ec.Problem

        canEvaluate, clone, closeContacts, describe, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContacts
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ec.simple.SimpleProblemForm

        describe
    • Field Detail

      • P_VALIDATION_PROP

        public static final java.lang.String P_VALIDATION_PROP
        Parameter for the proportion of samples used for validation
        See Also:
        Constant Field Values
      • defaultValidationProp

        public static final double defaultValidationProp
        Default validation proportion
        See Also:
        Constant Field Values
      • validationProp

        public double validationProp
        Validation proportion
    • Constructor Detail

      • TestLibSVM

        public TestLibSVM()
    • Method Detail

      • defaultBase

        public ec.util.Parameter defaultBase()
        Return the default base for this problem
        Specified by:
        defaultBase in interface ec.Prototype
        Overrides:
        defaultBase in class FSSubsetProblem
      • setup

        public void setup​(ec.EvolutionState state,
                          ec.util.Parameter base)
        Set up the problem by reading it from the parameters stored in state, built off of the parameter base base.
        Specified by:
        setup in interface ec.Prototype
        Specified by:
        setup in interface ec.Setup
        Overrides:
        setup in class FSSubsetProblem
        Parameters:
        state - The evolution state
        base - The parameter base
      • evaluate

        public void evaluate​(ec.EvolutionState state,
                             ec.Individual ind,
                             int subpopulation,
                             int threadnum)
        Evaluate the individual (if not already evaluated)
        Parameters:
        state - The state of the evolutionary process
        ind - Individual to be evaluated
        subpopulation - The subpopulation to which the individual belongs
        threadnum - The thread of execution