This method writes out a JSAT dataset to a binary format that can be read in again later, and could be read in other languages. The format that is used will understand both ClassificationDataSet and RegressionDataSet datasets as special cases, and will store the target value
(DataSet<Type> dataset, OutputStream outRaw)
| 293 | * @throws IOException |
| 294 | */ |
| 295 | public static <Type extends DataSet<Type>> void writeData(DataSet<Type> dataset, OutputStream outRaw) throws IOException |
| 296 | { |
| 297 | writeData(dataset, outRaw, FloatStorageMethod.AUTO); |
| 298 | } |
| 299 | |
| 300 | /** |
| 301 | * This method writes out a JSAT dataset to a binary format that can be read |