public class LibsvmDatasetReader extends DatasetReader
Modifier and Type | Field and Description |
---|---|
static String |
COMMENT_REPRESENTATION_NAME |
static String |
COMMENT_SEPARATOR |
inputBuffer, nextRow
Constructor and Description |
---|
LibsvmDatasetReader(String filename,
String representationName)
Constructor for reading dataset in libsvm/liblinear/svmLight format for classification tasks.
|
LibsvmDatasetReader(String filename,
String representationName,
StringLabel regressionPropertyName)
Constructor for reading dataset in libsvm/liblinear/svmLight format for regression tasks.
|
Modifier and Type | Method and Description |
---|---|
Example |
readNextExample()
Returns the next example
|
checkRowValidity, close, hasNext, openBufferedReader, restartReading
public static final String COMMENT_SEPARATOR
public static final String COMMENT_REPRESENTATION_NAME
public LibsvmDatasetReader(String filename, String representationName) throws IOException
filename
- the path of the file to be readrepresentationName
- the name of the vector representation each example consists ofIOException
public LibsvmDatasetReader(String filename, String representationName, StringLabel regressionPropertyName) throws IOException
filename
- the path of the file to be readrepresentationName
- the name of the vector representation each example consists ofregressionPropertyName
- the name of the regression property to be learnedIOException
public Example readNextExample() throws IOException, InstantiationException
DatasetReader
readNextExample
in class DatasetReader
IOException
InstantiationException
Copyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.