com.rapidminer.operator.learner.functions.kernel.logistic
Class KLR

java.lang.Object
  extended by com.rapidminer.operator.learner.functions.kernel.logistic.KLR
All Implemented Interfaces:
SVMInterface

public class KLR
extends java.lang.Object
implements SVMInterface

The main class for the Kernel Logistic Regression.

Author:
Stefan Rueping

Field Summary
protected  SVMExamples examples
           
protected  Kernel kernel
           
 
Constructor Summary
KLR()
           
KLR(Operator paramOperator)
           
 
Method Summary
 double getB()
          Returns the value of b.
 double[] getWeights()
          Return the weights of the features.
 void init(Kernel new_kernel, SVMExamples new_examples)
          Initializes this SVM.
 void klr()
           
 double predict(SVMExample sVMExample)
          Perform a prediction of label for all examples.
 void predict(SVMExamples to_predict)
          Perform a prediction of label for all examples.
protected  boolean takeStep(int i, int j)
           
 void train()
          Train this SVM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

protected Kernel kernel

examples

protected SVMExamples examples
Constructor Detail

KLR

public KLR()

KLR

public KLR(Operator paramOperator)
    throws UndefinedParameterError
Throws:
UndefinedParameterError
Method Detail

init

public void init(Kernel new_kernel,
                 SVMExamples new_examples)
Description copied from interface: SVMInterface
Initializes this SVM.

Specified by:
init in interface SVMInterface

takeStep

protected boolean takeStep(int i,
                           int j)

klr

public void klr()

predict

public double predict(SVMExample sVMExample)
Description copied from interface: SVMInterface
Perform a prediction of label for all examples.

Specified by:
predict in interface SVMInterface

predict

public void predict(SVMExamples to_predict)
Description copied from interface: SVMInterface
Perform a prediction of label for all examples.

Specified by:
predict in interface SVMInterface

train

public void train()
Description copied from interface: SVMInterface
Train this SVM.

Specified by:
train in interface SVMInterface

getWeights

public double[] getWeights()
Return the weights of the features.

Specified by:
getWeights in interface SVMInterface

getB

public double getB()
Returns the value of b.

Specified by:
getB in interface SVMInterface


Copyright © 2001-2009 by Rapid-I