code: public static <Type extends DataSet<Type>> void writeData(DataSet<Type> dataset, OutputStream outRaw) throws IOException
      {
          writeData(dataset, outRaw, FloatStorageMethod.AUTO);
      }
docs: 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.<br>
  <br>
  The format that is used will understand both
  {@link ClassificationDataSet} and {@link RegressionDataSet} datasets as
  special cases, and will store the target values in the binary file. When
  read back in, they can be returned as their original dataset type, or
  treated as normal fields as a {@link SimpleDataSet}.<br>
  The storage format chosen for floating point values will chose a method
  that results in no loss of precision when reading the data back in.
  
  @param <Type>
  @param dataset the dataset to write out to a binary file
  @param outRaw the raw output stream, the caller should provide a buffered
  stream.
  @throws IOException