Companion
object Companion
Content copied to clipboard
Functions
create
Link copied to clipboard
Use preprocessors to prepare data to create dataset OnFlyImageDataset.
fun create(preprocessors: Preprocessing, labels: FloatArray): OnFlyImageDataset
Content copied to clipboard
Use preprocessors and labels to prepare data to create dataset OnFlyImageDataset.
toNormalizedVector
Link copied to clipboard
Normalizes bytes via division on 255 to get values in range '[0; 1)'.
toOneHotVector
Link copied to clipboard
Creates binary vector with size numClasses from label.
toRawVector
Link copied to clipboard
Converts bytes to FloatArray.