Package weka.classifiers.functions
Class SMO.BinarySMO
java.lang.Object
weka.classifiers.functions.SMO.BinarySMO
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SMO
Class for building a binary support vector machine.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the kernel to useReturns the revision string.void
sets the kernel to usedouble
Computes SVM output for given instance.toString()
Prints out the classifier.
-
Constructor Details
-
BinarySMO
public BinarySMO()
-
-
Method Details
-
setKernel
sets the kernel to use- Parameters:
value
- the kernel to use
-
getKernel
Returns the kernel to use- Returns:
- the current kernel
-
SVMOutput
Computes SVM output for given instance.- Parameters:
index
- the instance for which output is to be computedinst
- the instance- Returns:
- the output of the SVM for the given instance
- Throws:
Exception
- in case of an error
-
toString
Prints out the classifier. -
getRevision
Returns the revision string.- Returns:
- the revision
-