com.rapidminer.operator.learner.functions.kernel
Class MyKLRLearner

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.learner.AbstractLearner
              extended by com.rapidminer.operator.learner.functions.kernel.AbstractKernelBasedLearner
                  extended by com.rapidminer.operator.learner.functions.kernel.AbstractMySVMLearner
                      extended by com.rapidminer.operator.learner.functions.kernel.MyKLRLearner
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, CapabilityProvider, Learner, ParameterHandler, LoggingHandler, Observable<Operator>

public class MyKLRLearner
extends AbstractMySVMLearner

This is the Java implementation of myKLR by Stefan Rüping. myKLR is a tool for large scale kernel logistic regression based on the algorithm of Keerthi/etal/2003 and the code of mySVM.

Author:
Ingo Mierswa
Keywords:
KLR

Field Summary
 
Fields inherited from class com.rapidminer.operator.learner.functions.kernel.AbstractMySVMLearner
KERNEL_ANOVA, KERNEL_DOT, KERNEL_EPANECHNIKOV, KERNEL_GAUSSIAN_COMBINATION, KERNEL_MULTIQUADRIC, KERNEL_NEURAL, KERNEL_POLYNOMIAL, KERNEL_RADIAL, KERNEL_TYPES, PARAMETER_C, PARAMETER_CALCULATE_WEIGHTS, PARAMETER_CONVERGENCE_EPSILON, PARAMETER_KERNEL_A, PARAMETER_KERNEL_B, PARAMETER_KERNEL_CACHE, PARAMETER_KERNEL_DEGREE, PARAMETER_KERNEL_GAMMA, PARAMETER_KERNEL_SHIFT, PARAMETER_KERNEL_SIGMA1, PARAMETER_KERNEL_SIGMA2, PARAMETER_KERNEL_SIGMA3, PARAMETER_KERNEL_TYPE, PARAMETER_MAX_ITERATIONS, PARAMETER_RETURN_OPTIMIZATION_PERFORMANCE, PARAMETER_SCALE
 
Fields inherited from interface com.rapidminer.operator.learner.CapabilityProvider
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN
 
Constructor Summary
MyKLRLearner(OperatorDescription description)
           
 
Method Summary
 SVMInterface createSVM(Attribute label, Kernel kernel, SVMExamples sVMExamples, ExampleSet rapidMinerExamples)
          Creates a new SVM according to the given label.
 AbstractMySVMModel createSVMModel(ExampleSet exampleSet, SVMExamples sVMExamples, Kernel kernel, int kernelType)
          Creates a new SVM model from the given data.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 boolean supportsCapability(OperatorCapability lc)
          Checks for Learner capabilities.
 
Methods inherited from class com.rapidminer.operator.learner.functions.kernel.AbstractMySVMLearner
canCalculateWeights, createKernel, getKernel, getOptimizationPerformance, getSVM, getWeightCalculationError, getWeights, learn, shouldCalculateWeights, shouldDeliverOptimizationPerformance
 
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.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getResourceConsumptionEstimator, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, registerOperator, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
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
 

Constructor Detail

MyKLRLearner

public MyKLRLearner(OperatorDescription description)
Method Detail

supportsCapability

public boolean supportsCapability(OperatorCapability lc)
Description copied from interface: CapabilityProvider
Checks for Learner capabilities. Should return true if the given capability is supported.

Specified by:
supportsCapability in interface CapabilityProvider
Overrides:
supportsCapability in class AbstractMySVMLearner

createSVMModel

public AbstractMySVMModel createSVMModel(ExampleSet exampleSet,
                                         SVMExamples sVMExamples,
                                         Kernel kernel,
                                         int kernelType)
Description copied from class: AbstractMySVMLearner
Creates a new SVM model from the given data.

Specified by:
createSVMModel in class AbstractMySVMLearner

createSVM

public SVMInterface createSVM(Attribute label,
                              Kernel kernel,
                              SVMExamples sVMExamples,
                              ExampleSet rapidMinerExamples)
                       throws OperatorException
Description copied from class: AbstractMySVMLearner
Creates a new SVM according to the given label.

Specified by:
createSVM in class AbstractMySVMLearner
Throws:
OperatorException

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. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

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


Copyright © 2001-2009 by Rapid-I