|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.minorthird.classify.algorithms.svm.VisibleSVM
public class VisibleSVM
VisibleSVM processes the svm_model from LIBSVM into recognizabled formats, and visible GUI in MINORTHIRD. For example, each svm_node of svm_model is converted to Feature object in MINORTHIRD corresponding to the feature information stored in FeatureIdFactory. Each support vector of svm_model is converted to Example object in MINORTHIRD.
Constructor Summary | |
---|---|
VisibleSVM(libsvm.svm_model model,
FeatureFactory factory)
Constructor for the svm_model returned from SVMClassifier LIBSVM training. |
|
VisibleSVM(libsvm.svm_model model,
FeatureFactory factory,
ExampleSchema schema)
Constructor for the svm_model returned from MultiClassSVMClassifier LIBSVM training. |
Method Summary | |
---|---|
Example[] |
getExamples()
Get Support Vectors of svm_model in array of MINORTHIRD Example format. |
java.lang.String[][] |
getExampleWeightLabels()
Get Weight Labels of Example return m X n String array, m = # of examples, n = # of corresponding hyperplanes |
Hyperplane |
getHyperplane(int index)
Get Hyperplane from the Hyperplane array |
java.lang.String |
getHyperplaneLabel(int index)
Get Hyperplane label from the Hyperplane labels array |
Viewer |
toGUI()
GUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VisibleSVM(libsvm.svm_model model, FeatureFactory factory)
model
- svm_model returned from LIBSVM trainingfactory
- FeatureFactory which has Feature's id and corresponding information before converted into svm_node in svm_problem for LIBSVM trainingpublic VisibleSVM(libsvm.svm_model model, FeatureFactory factory, ExampleSchema schema)
model
- svm_model returned from LIBSVM trainingfactory
- FeatureFactory which has Feature's id and corresponding information before converted into svm_node in svm_problem for LIBSVM trainingschema
- ExampleSchema which has class label informationMethod Detail |
---|
public Example[] getExamples()
public java.lang.String[][] getExampleWeightLabels()
public Hyperplane getHyperplane(int index)
public java.lang.String getHyperplaneLabel(int index)
public Viewer toGUI()
toGUI
in interface Visible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |