Package org.biojava.stats.svm.tools
Class SVM_Light
- java.lang.Object
-
- org.biojava.stats.svm.tools.SVM_Light
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SVM_Light.LabelledVector
-
Constructor Summary
Constructors Constructor Description SVM_Light()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
firstToken(String s)
static SVM_Light.LabelledVector
parseExample(String ex)
static SVMClassifierModel
readModelFile(String fileName)
static String
vectorToString(SparseVector v)
static void
writeModelFile(SVMClassifierModel model, String fileName)
-
-
-
Constructor Detail
-
SVM_Light
public SVM_Light()
-
-
Method Detail
-
parseExample
public static SVM_Light.LabelledVector parseExample(String ex) throws NumberFormatException
- Throws:
NumberFormatException
-
vectorToString
public static String vectorToString(SparseVector v)
-
readModelFile
public static SVMClassifierModel readModelFile(String fileName) throws IOException
- Throws:
IOException
-
writeModelFile
public static void writeModelFile(SVMClassifierModel model, String fileName) throws IOException
- Throws:
IOException
-
firstToken
public static String firstToken(String s)
-
-