MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / pointToBytes

Method pointToBytes

JSAT/src/jsat/io/DataWriter.java:116–116  ·  view source on GitHub ↗

This method converts a datapoint into the sequence of bytes used by the underlying file format. @param dp the data point to be converted to set of bytes @param label the label of the point to convert to the set of bytes @param byteOut the location to write the bytes to.

(DataPoint dp, double label, ByteArrayOutputStream byteOut)

Source from the content-addressed store, hash-verified

114 * @param byteOut the location to write the bytes to.
115 */
116 abstract protected void pointToBytes(DataPoint dp, double label, ByteArrayOutputStream byteOut);
117
118 /**
119 * To be called after all threads are done calling {@link #writePoint(jsat.classifiers.DataPoint, double) }.

Callers 1

writePointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected