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, restartReadingpublic 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 ofIOExceptionpublic 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 learnedIOExceptionpublic Example readNextExample() throws IOException, InstantiationException
DatasetReaderreadNextExample in class DatasetReaderIOExceptionInstantiationExceptionCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.