com.rapidminer.operator.learner.functions.kernel.evosvm
Class PSOSVM

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.learner.AbstractLearner
          extended by com.rapidminer.operator.learner.functions.kernel.evosvm.PSOSVM
All Implemented Interfaces:
ConfigurationListener, PreviewListener, Learner, ParameterHandler, LoggingHandler

public class PSOSVM
extends AbstractLearner

This is a SVM implementation using a particle swarm optimization (PSO) approach to solve the dual optimization problem of a SVM. It turns out that on many datasets this simple implementation is as fast and accurate as the usual SVM implementations.

Author:
Ingo Mierswa
Keywords:
SVM

Field Summary
static java.lang.String PARAMETER_C
          The parameter name for "The SVM complexity constant (0: calculates probably good value).
static java.lang.String PARAMETER_DYNAMIC_INERTIA_WEIGHT
          The parameter name for "If set to true the inertia weight is improved during run.
static java.lang.String PARAMETER_GENERATIONS_WITHOUT_IMPROVAL
          The parameter name for "Stop after this number of generations without improvement (-1: optimize until max_iterations).
static java.lang.String PARAMETER_GLOBAL_BEST_WEIGHT
          The parameter name for "The weight for the population's best position during run.
static java.lang.String PARAMETER_INERTIA_WEIGHT
          The parameter name for "The (initial) weight for the old weighting.
static java.lang.String PARAMETER_LOCAL_BEST_WEIGHT
          The parameter name for "The weight for the individual's best position during run.
static java.lang.String PARAMETER_MAX_EVALUATIONS
          The parameter name for "Stop after this many evaluations"
static java.lang.String PARAMETER_POPULATION_SIZE
          The parameter name for "The population size (-1: number of examples)"
static java.lang.String PARAMETER_SHOW_CONVERGENCE_PLOT
          The parameter name for "Indicates if a dialog with a convergence plot should be drawn.
 
Fields inherited from class com.rapidminer.operator.learner.AbstractLearner
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN
 
Constructor Summary
PSOSVM(OperatorDescription description)
          Creates a new SVM which uses a particle swarm optimization approach for optimization.
 
Method Summary
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 Model learn(ExampleSet exampleSet)
          Learns and returns a model.
 boolean supportsCapability(LearnerCapability lc)
          Returns true for numerical attributes, binominal classes, and numerical target attributes.
 
Methods inherited from class com.rapidminer.operator.learner.AbstractLearner
apply, getEstimatedPerformance, getInputClasses, getInputDescription, getOptimizationPerformance, getOutputClasses, getWeights, onlyWarnForNonSufficientCapabilities, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkDeprecations, checkForStop, checkIO, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInnerOperatorsXML, getInput, getInput, getInput, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, performAdditionalChecks, processFinished, processStarts, register, registerOperator, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, unregisterOperator, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.learner.Learner
getName
 

Field Detail

PARAMETER_SHOW_CONVERGENCE_PLOT

public static final java.lang.String PARAMETER_SHOW_CONVERGENCE_PLOT
The parameter name for "Indicates if a dialog with a convergence plot should be drawn."

See Also:
Constant Field Values

PARAMETER_C

public static final java.lang.String PARAMETER_C
The parameter name for "The SVM complexity constant (0: calculates probably good value)."

See Also:
Constant Field Values

PARAMETER_MAX_EVALUATIONS

public static final java.lang.String PARAMETER_MAX_EVALUATIONS
The parameter name for "Stop after this many evaluations"

See Also:
Constant Field Values

PARAMETER_GENERATIONS_WITHOUT_IMPROVAL

public static final java.lang.String PARAMETER_GENERATIONS_WITHOUT_IMPROVAL
The parameter name for "Stop after this number of generations without improvement (-1: optimize until max_iterations)."

See Also:
Constant Field Values

PARAMETER_POPULATION_SIZE

public static final java.lang.String PARAMETER_POPULATION_SIZE
The parameter name for "The population size (-1: number of examples)"

See Also:
Constant Field Values

PARAMETER_INERTIA_WEIGHT

public static final java.lang.String PARAMETER_INERTIA_WEIGHT
The parameter name for "The (initial) weight for the old weighting."

See Also:
Constant Field Values

PARAMETER_LOCAL_BEST_WEIGHT

public static final java.lang.String PARAMETER_LOCAL_BEST_WEIGHT
The parameter name for "The weight for the individual's best position during run."

See Also:
Constant Field Values

PARAMETER_GLOBAL_BEST_WEIGHT

public static final java.lang.String PARAMETER_GLOBAL_BEST_WEIGHT
The parameter name for "The weight for the population's best position during run."

See Also:
Constant Field Values

PARAMETER_DYNAMIC_INERTIA_WEIGHT

public static final java.lang.String PARAMETER_DYNAMIC_INERTIA_WEIGHT
The parameter name for "If set to true the inertia weight is improved during run."

See Also:
Constant Field Values
Constructor Detail

PSOSVM

public PSOSVM(OperatorDescription description)
Creates a new SVM which uses a particle swarm optimization approach for optimization.

Method Detail

learn

public Model learn(ExampleSet exampleSet)
            throws OperatorException
Learns and returns a model.

Throws:
OperatorException

supportsCapability

public boolean supportsCapability(LearnerCapability lc)
Returns true for numerical attributes, binominal classes, and numerical target attributes.


getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed.

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class Operator


Copyright © 2001-2009 by Rapid-I