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

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.operator.AbstractModel
              extended by com.rapidminer.operator.learner.PredictionModel
                  extended by com.rapidminer.operator.learner.functions.kernel.KernelModel
All Implemented Interfaces:
IOObject, Model, ResultObject, Readable, Reportable, LoggingHandler, java.io.Serializable
Direct Known Subclasses:
AbstractMySVMModel, EvoSVMModel, GPModel, KernelLogisticRegressionModel, LibSVMModel, RVMModel

public abstract class KernelModel
extends PredictionModel

This is the abstract model class for all kernel models. This class actually only provide a common interface for plotting SVM and other kernel method models.

Author:
Ingo Mierswa
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject
AbstractIOObject.InputStreamProvider
 
Constructor Summary
KernelModel(ExampleSet exampleSet)
           
 
Method Summary
 DataTable createWeightsTable()
           
abstract  double getAlpha(int index)
           
 java.lang.String[] getAttributeConstructions()
           
abstract  double getAttributeValue(int exampleIndex, int attributeIndex)
           
abstract  double getBias()
           
abstract  java.lang.String getClassificationLabel(int index)
           
abstract  double getFunctionValue(int index)
           
abstract  java.lang.String getId(int index)
           
 java.lang.String getName()
          The default implementation returns the classname without package.
abstract  int getNumberOfAttributes()
           
abstract  int getNumberOfSupportVectors()
           
abstract  double getRegressionLabel(int index)
           
abstract  SupportVector getSupportVector(int index)
           
abstract  boolean isClassificationModel()
           
 java.lang.String toString()
          Returns a string representation of this model.
 
Methods inherited from class com.rapidminer.operator.learner.PredictionModel
apply, checkCompatibility, copyPredictedLabel, createPredictedLabel, createPredictionAttributes, getLabel, performPrediction, removePredictedLabel, removePredictedLabel, supportsConfidences
 
Methods inherited from class com.rapidminer.operator.AbstractModel
getExtension, getFileDescription, getTrainingHeader, isInTargetEncoding, isUpdatable, setParameter, updateModel
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML, toResultString
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.ResultObject
getActions, getResultIcon, toResultString
 
Methods inherited from interface com.rapidminer.operator.IOObject
appendOperatorToHistory, copy, getAnnotations, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write
 

Constructor Detail

KernelModel

public KernelModel(ExampleSet exampleSet)
Method Detail

getBias

public abstract double getBias()

getAlpha

public abstract double getAlpha(int index)

getFunctionValue

public abstract double getFunctionValue(int index)

isClassificationModel

public abstract boolean isClassificationModel()

getClassificationLabel

public abstract java.lang.String getClassificationLabel(int index)

getRegressionLabel

public abstract double getRegressionLabel(int index)

getId

public abstract java.lang.String getId(int index)

getSupportVector

public abstract SupportVector getSupportVector(int index)

getNumberOfSupportVectors

public abstract int getNumberOfSupportVectors()

getNumberOfAttributes

public abstract int getNumberOfAttributes()

getAttributeValue

public abstract double getAttributeValue(int exampleIndex,
                                         int attributeIndex)

getAttributeConstructions

public java.lang.String[] getAttributeConstructions()

getName

public java.lang.String getName()
The default implementation returns the classname without package.

Specified by:
getName in interface ResultObject
Overrides:
getName in class AbstractModel

toString

public java.lang.String toString()
Returns a string representation of this model.

Specified by:
toString in interface Readable
Overrides:
toString in class PredictionModel

createWeightsTable

public DataTable createWeightsTable()


Copyright © 2001-2009 by Rapid-I