Package tests.testLibSVM
Class TestLibSVM
- java.lang.Object
-
- ec.Problem
-
- ristretto.problem.fs.subset.FSSubsetProblem
-
- tests.testLibSVM.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
-
-
Field Summary
Fields Modifier and Type Field Description static doubledefaultValidationPropDefault validation proportionstatic java.lang.StringP_VALIDATION_PROPParameter for the proportion of samples used for validationdoublevalidationPropValidation proportion-
Fields inherited from class ristretto.problem.fs.subset.FSSubsetProblem
data, debug, P_DEBUG, P_FS_DATASET, P_FS_DATASET_CLASS_INDEX, P_FS_PROBLEM
-
-
Constructor Summary
Constructors Constructor Description TestLibSVM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ec.util.ParameterdefaultBase()Return the default base for this problemvoidevaluate(ec.EvolutionState state, ec.Individual ind, int subpopulation, int threadnum)Evaluate the individual (if not already evaluated)voidsetup(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
-
-
-
-
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
-
-
Method Detail
-
defaultBase
public ec.util.Parameter defaultBase()
Return the default base for this problem- Specified by:
defaultBasein interfaceec.Prototype- Overrides:
defaultBasein classFSSubsetProblem
-
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:
setupin interfaceec.Prototype- Specified by:
setupin interfaceec.Setup- Overrides:
setupin classFSSubsetProblem- Parameters:
state- The evolution statebase- 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 processind- Individual to be evaluatedsubpopulation- The subpopulation to which the individual belongsthreadnum- The thread of execution
-
-