public class LibSVMDataSet extends ListDataSet
Modifier and Type | Class and Description |
---|---|
static interface |
LibSVMDataSet.ResultInterpreter
Method by which to interpret the example result
as an object
|
Modifier and Type | Field and Description |
---|---|
static LibSVMDataSet.ResultInterpreter |
IntegerInterpreter
Interprets the result string as an integer
|
static LibSVMDataSet.ResultInterpreter |
StringInterpreter
Interprets the result string as a string
|
Constructor and Description |
---|
LibSVMDataSet(java.io.InputStream in,
int numFeatures,
LibSVMDataSet.ResultInterpreter interpreter)
Initializes the dataset using an input stream in LibSVM format
|
getNumExamples, iterator
getNumFeatures, toString
public static final LibSVMDataSet.ResultInterpreter IntegerInterpreter
public static final LibSVMDataSet.ResultInterpreter StringInterpreter
public LibSVMDataSet(java.io.InputStream in, int numFeatures, LibSVMDataSet.ResultInterpreter interpreter) throws java.io.IOException
in
- input stream in LibSVM formatnumFeatures
- total number of features in the datasetinterpreter
- method by which to interpret each example resultjava.io.IOException
- IO error when accessing the input stream