|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.learner.AbstractLearner
com.rapidminer.operator.learner.functions.kernel.AbstractKernelBasedLearner
com.rapidminer.operator.learner.functions.kernel.AbstractMySVMLearner
public abstract class AbstractMySVMLearner
This is the abstract superclass for the support vector machine / KLR implementations of Stefan Rüping.
Field Summary | |
---|---|
static int |
KERNEL_ANOVA
Indicates an anova kernel. |
static int |
KERNEL_DOT
Indicates a linear kernel. |
static int |
KERNEL_EPANECHNIKOV
Indicates a epanechnikov kernel. |
static int |
KERNEL_GAUSSIAN_COMBINATION
Indicates a gaussian combination kernel. |
static int |
KERNEL_MULTIQUADRIC
Indicates a multiquadric kernel. |
static int |
KERNEL_NEURAL
Indicates a neural net kernel. |
static int |
KERNEL_POLYNOMIAL
Indicates a polynomial kernel. |
static int |
KERNEL_RADIAL
Indicates a rbf kernel. |
static java.lang.String[] |
KERNEL_TYPES
The kernels which can be used from RapidMiner for the mySVM / myKLR. |
static java.lang.String |
PARAMETER_C
|
static java.lang.String |
PARAMETER_CALCULATE_WEIGHTS
|
static java.lang.String |
PARAMETER_CONVERGENCE_EPSILON
The parameter name for "Precision on the KKT conditions" |
static java.lang.String |
PARAMETER_KERNEL_A
The parameter name for "The SVM kernel parameter a (neural). |
static java.lang.String |
PARAMETER_KERNEL_B
The parameter name for "The SVM kernel parameter b (neural). |
static java.lang.String |
PARAMETER_KERNEL_CACHE
The parameter name for "Size of the cache for kernel evaluations im MB " |
static java.lang.String |
PARAMETER_KERNEL_DEGREE
The parameter name for "The SVM kernel parameter degree (polynomial, anova, epanechnikov). |
static java.lang.String |
PARAMETER_KERNEL_GAMMA
The parameter name for "The SVM kernel parameter gamma (radial, anova). |
static java.lang.String |
PARAMETER_KERNEL_SHIFT
The parameter name for "The SVM kernel parameter shift (multiquadric). |
static java.lang.String |
PARAMETER_KERNEL_SIGMA1
The parameter name for "The SVM kernel parameter sigma1 (epanechnikov, gaussian combination, multiquadric). |
static java.lang.String |
PARAMETER_KERNEL_SIGMA2
The parameter name for "The SVM kernel parameter sigma2 (gaussian combination). |
static java.lang.String |
PARAMETER_KERNEL_SIGMA3
The parameter name for "The SVM kernel parameter sigma3 (gaussian combination). |
static java.lang.String |
PARAMETER_KERNEL_TYPE
|
static java.lang.String |
PARAMETER_MAX_ITERATIONS
The parameter name for "Stop after this many iterations" |
static java.lang.String |
PARAMETER_RETURN_OPTIMIZATION_PERFORMANCE
The parameter name for "Indicates if final optimization fitness should be returned as performance. |
static java.lang.String |
PARAMETER_SCALE
The parameter name for "Scale the example values and store the scaling parameters for test set. |
Fields inherited from interface com.rapidminer.operator.learner.CapabilityProvider |
---|
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN |
Constructor Summary | |
---|---|
AbstractMySVMLearner(OperatorDescription description)
|
Method Summary | |
---|---|
boolean |
canCalculateWeights()
Returns true if this learner is capable of computing attribute weights. |
static Kernel |
createKernel(int kernelType)
Creates a new kernel of the given type. |
abstract SVMInterface |
createSVM(Attribute label,
Kernel kernel,
SVMExamples svmExamples,
ExampleSet rapidMinerExamples)
Creates a new SVM according to the given label. |
abstract AbstractMySVMModel |
createSVMModel(ExampleSet exampleSet,
SVMExamples svmExamples,
Kernel kernel,
int kernelType)
Creates a new SVM model from the given data. |
protected Kernel |
getKernel()
Returns the kernel of this SVM. |
PerformanceVector |
getOptimizationPerformance()
Returns the optimization performance of the best result. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
protected SVMInterface |
getSVM()
Returns the used SVM. |
MetaDataError |
getWeightCalculationError(OutputPort weightPort)
|
AttributeWeights |
getWeights(ExampleSet exampleSet)
Returns the weights for all features. |
Model |
learn(ExampleSet exampleSet)
Trains a model. |
boolean |
shouldCalculateWeights()
Returns true if the user has specified that weights should be calculated. |
boolean |
shouldDeliverOptimizationPerformance()
Returns the value of the corresponding parameter. |
boolean |
supportsCapability(OperatorCapability lc)
Checks for Learner capabilities. |
Methods inherited from class com.rapidminer.operator.learner.functions.kernel.AbstractKernelBasedLearner |
---|
getModelClass |
Methods inherited from class com.rapidminer.operator.learner.AbstractLearner |
---|
canEstimatePerformance, doWork, doWork, getEstimatedPerformance, getExampleSetInputPort, getWeights, onlyWarnForNonSufficientCapabilities, shouldAutoConnect, shouldEstimatePerformance |
Methods inherited from class com.rapidminer.tools.AbstractObservable |
---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
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 |
---|
public static final java.lang.String PARAMETER_KERNEL_GAMMA
public static final java.lang.String PARAMETER_KERNEL_SIGMA1
public static final java.lang.String PARAMETER_KERNEL_SIGMA2
public static final java.lang.String PARAMETER_KERNEL_SIGMA3
public static final java.lang.String PARAMETER_KERNEL_SHIFT
public static final java.lang.String PARAMETER_KERNEL_DEGREE
public static final java.lang.String PARAMETER_KERNEL_A
public static final java.lang.String PARAMETER_KERNEL_B
public static final java.lang.String PARAMETER_KERNEL_CACHE
public static final java.lang.String PARAMETER_CONVERGENCE_EPSILON
public static final java.lang.String PARAMETER_MAX_ITERATIONS
public static final java.lang.String PARAMETER_SCALE
public static final java.lang.String PARAMETER_RETURN_OPTIMIZATION_PERFORMANCE
public static final java.lang.String PARAMETER_C
public static final java.lang.String PARAMETER_KERNEL_TYPE
public static final java.lang.String PARAMETER_CALCULATE_WEIGHTS
public static final java.lang.String[] KERNEL_TYPES
public static final int KERNEL_DOT
public static final int KERNEL_RADIAL
public static final int KERNEL_POLYNOMIAL
public static final int KERNEL_NEURAL
public static final int KERNEL_ANOVA
public static final int KERNEL_EPANECHNIKOV
public static final int KERNEL_GAUSSIAN_COMBINATION
public static final int KERNEL_MULTIQUADRIC
Constructor Detail |
---|
public AbstractMySVMLearner(OperatorDescription description)
Method Detail |
---|
public MetaDataError getWeightCalculationError(OutputPort weightPort)
getWeightCalculationError
in class AbstractLearner
public abstract SVMInterface createSVM(Attribute label, Kernel kernel, SVMExamples svmExamples, ExampleSet rapidMinerExamples) throws OperatorException
OperatorException
public abstract AbstractMySVMModel createSVMModel(ExampleSet exampleSet, SVMExamples svmExamples, Kernel kernel, int kernelType)
protected Kernel getKernel()
protected SVMInterface getSVM()
public boolean shouldDeliverOptimizationPerformance()
shouldDeliverOptimizationPerformance
in class AbstractLearner
public PerformanceVector getOptimizationPerformance()
getOptimizationPerformance
in class AbstractLearner
public boolean shouldCalculateWeights()
shouldCalculateWeights
in interface Learner
shouldCalculateWeights
in class AbstractLearner
public boolean canCalculateWeights()
AbstractLearner
AbstractLearner.getWeights(ExampleSet)
canCalculateWeights
in class AbstractLearner
public AttributeWeights getWeights(ExampleSet exampleSet) throws OperatorException
getWeights
in interface Learner
getWeights
in class AbstractLearner
OperatorException
public Model learn(ExampleSet exampleSet) throws OperatorException
Learner
OperatorException
public static Kernel createKernel(int kernelType)
public boolean supportsCapability(OperatorCapability lc)
CapabilityProvider
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in interface ParameterHandler
getParameterTypes
in class Operator
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |