public class LibSvmRecordWriter extends SVMLightRecordWriter
Further details on the format can be found at
- http://svmlight.joachims.org/
- http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/multilabel.html
- http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_svmlight_file.htmlFEATURE_FIRST_COLUMN, FEATURE_LAST_COLUMN, featureFirstColumn, featureLastColumn, HAS_LABELS, hasLabel, LABEL_FIRST_COLUMN, LABEL_LAST_COLUMN, labelFirstColumn, labelLastColumn, multilabel, MULTILABEL, NAME_SPACE, UNLABELED, ZERO_BASED_INDEXING, ZERO_BASED_LABEL_INDEXING, zeroBasedIndexing, zeroBasedLabelIndexingconf, DEFAULT_CHARSET, encoding, NEW_LINE, out, PATH, writeToAPPEND| Constructor and Description |
|---|
LibSvmRecordWriter() |
LibSvmRecordWriter(Configuration conf) |
LibSvmRecordWriter(File path) |
LibSvmRecordWriter(File path,
boolean append) |
| Modifier and Type | Method and Description |
|---|---|
void |
setConf(Configuration conf)
Set DataVec configuration
|
writeclose, getConfpublic LibSvmRecordWriter()
public LibSvmRecordWriter(File path) throws FileNotFoundException
FileNotFoundExceptionpublic LibSvmRecordWriter(File path, boolean append) throws FileNotFoundException
FileNotFoundExceptionpublic LibSvmRecordWriter(Configuration conf) throws FileNotFoundException
FileNotFoundExceptionpublic void setConf(Configuration conf)
SVMLightRecordWritersetConf in interface ConfigurablesetConf in class SVMLightRecordWriterCopyright © 2017. All rights reserved.