|
||||||||||
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.LinearMySVMLearner
public class LinearMySVMLearner
This class implements a special case of the MySVM by restricting it to the linear (dot) kernel. This way the weights of the linear combination can be extracted and stored solely in the resulting model. The model is optimized for small size / fast store and retrieve operations as well as time efficient during application.
Field Summary | |
---|---|
static int |
KERNEL_DOT
Indicates a linear kernel. |
static java.lang.String |
PARAMETER_BALANCE_COST
The parameter name for "Adapts Cpos and Cneg to the relative size of the classes" |
static java.lang.String |
PARAMETER_C
|
static java.lang.String |
PARAMETER_CONVERGENCE_EPSILON
The parameter name for "Precision on the KKT conditions" |
static java.lang.String |
PARAMETER_EPSILON
The parameter name for "Insensitivity constant. |
static java.lang.String |
PARAMETER_EPSILON_MINUS
The parameter name for "Epsilon for negative deviation only" |
static java.lang.String |
PARAMETER_EPSILON_PLUS
The parameter name for "Epsilon for positive deviation only" |
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_L_NEG
The parameter name for "A factor for the SVM complexity constant for negative examples" |
static java.lang.String |
PARAMETER_L_POS
The parameter name for "A factor for the SVM complexity constant for positive examples" |
static java.lang.String |
PARAMETER_MAX_ITERATIONS
The parameter name for "Stop after this many iterations" |
static java.lang.String |
PARAMETER_QUADRATIC_LOSS_NEG
The parameter name for "Use quadratic loss for negative deviation" |
static java.lang.String |
PARAMETER_QUADRATIC_LOSS_POS
The parameter name for "Use quadratic loss for positive deviation" |
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 | |
---|---|
LinearMySVMLearner(OperatorDescription description)
|
Method Summary | |
---|---|
protected SVMInterface |
createSVM(Attribute label,
Kernel kernel,
SVMExamples sVMExamples,
ExampleSet rapidMinerExamples)
|
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
ResourceConsumptionEstimator |
getResourceConsumptionEstimator()
Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input. |
Model |
learn(ExampleSet exampleSet)
Trains a model. |
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 |
---|
canCalculateWeights, canEstimatePerformance, doWork, doWork, getEstimatedPerformance, getExampleSetInputPort, getOptimizationPerformance, getWeightCalculationError, getWeights, getWeights, onlyWarnForNonSufficientCapabilities, shouldAutoConnect, shouldCalculateWeights, shouldDeliverOptimizationPerformance, 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_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_C
public static final java.lang.String PARAMETER_L_POS
public static final java.lang.String PARAMETER_L_NEG
public static final java.lang.String PARAMETER_EPSILON
public static final java.lang.String PARAMETER_EPSILON_PLUS
public static final java.lang.String PARAMETER_EPSILON_MINUS
public static final java.lang.String PARAMETER_BALANCE_COST
public static final java.lang.String PARAMETER_QUADRATIC_LOSS_POS
public static final java.lang.String PARAMETER_QUADRATIC_LOSS_NEG
public static final int KERNEL_DOT
Constructor Detail |
---|
public LinearMySVMLearner(OperatorDescription description)
Method Detail |
---|
protected SVMInterface createSVM(Attribute label, Kernel kernel, SVMExamples sVMExamples, ExampleSet rapidMinerExamples) throws OperatorException
OperatorException
public Model learn(ExampleSet exampleSet) throws OperatorException
Learner
OperatorException
public boolean supportsCapability(OperatorCapability lc)
CapabilityProvider
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in interface ParameterHandler
getParameterTypes
in class Operator
public ResourceConsumptionEstimator getResourceConsumptionEstimator()
Operator
getResourceConsumptionEstimator
in interface ResourceConsumer
getResourceConsumptionEstimator
in class Operator
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |