org.knime.base.node.mine.svm.util
Class BinarySvmRunnable

java.lang.Object
  extended by org.knime.base.node.mine.svm.util.BinarySvmRunnable
All Implemented Interfaces:
Runnable

public class BinarySvmRunnable
extends Object
implements Runnable

Utility class to run a Binary SVM learning process.

Author:
cebron, University of Konstanz

Constructor Summary
BinarySvmRunnable(DoubleVector[] inputData, String positiveClass, Kernel kernel, double paramC, ExecutionMonitor exec)
           
 
Method Summary
 Svm getSvm()
           
 void ok()
           
 void run()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinarySvmRunnable

public BinarySvmRunnable(DoubleVector[] inputData,
                         String positiveClass,
                         Kernel kernel,
                         double paramC,
                         ExecutionMonitor exec)
Parameters:
inputData - the input data to train with
positiveClass - the positive class value
kernel - the kernel to use
paramC - overlapping penalty to use
exec - the execution process to report to
Method Detail

run

public void run()

Specified by:
run in interface Runnable

ok

public void ok()
        throws Exception
Throws:
Exception - if something went wrong.

getSvm

public Svm getSvm()
Returns:
the trained Support Vector Machine.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.