public override void Save(BinaryWriter writer) { BinIO.magic_write(writer, "dataset"); BinIO.scalar_write(writer, DatatypeSize); BinIO.narray_write(writer, data); BinIO.narray_write(writer, classes); BinIO.scalar_write(writer, nc); BinIO.scalar_write(writer, nf); }
public override void Save(BinaryWriter writer) { BinIO.magic_write(writer, "dataset"); BinIO.scalar_write(writer, DatatypeSize); BinIO.scalar_write(writer, data.Dim(0)); BinIO.scalar_write(writer, nc); BinIO.scalar_write(writer, nf); for (int i = 0; i < data.Dim(0); i++) { BinIO.narray_write(writer, data[i]); } BinIO.narray_write(writer, classes); }
public override void Save(BinaryWriter writer) { BinIO.narray_write(writer, data); }