public class ARFFLoader extends Object
Double.NaN
for numeric
features, and a -1
for categorical features.
Constructor and Description |
---|
ARFFLoader() |
Modifier and Type | Method and Description |
---|---|
static SimpleDataSet |
loadArffFile(File file)
Uses the given file path to load a data set from an ARFF file.
|
static SimpleDataSet |
loadArffFile(Reader input)
Uses the given reader to load a data set assuming it follows the ARFF
file format
|
static void |
writeArffFile(DataSet data,
OutputStream os) |
static void |
writeArffFile(DataSet data,
OutputStream os,
String relation)
Writes out the dataset as an ARFF file to the given stream.
|
public static SimpleDataSet loadArffFile(File file)
file
- the path to the ARFF file to loadpublic static SimpleDataSet loadArffFile(Reader input)
input
- the reader to load the data set frompublic static void writeArffFile(DataSet data, OutputStream os)
public static void writeArffFile(DataSet data, OutputStream os, String relation)
ClassificationDataSet
and RegressionDataSet
.data
- the dataset to write outos
- the output stream to write toorelation
- the relation label to write outCopyright © 2017. All rights reserved.