create

fun create(featuresPath: String, labelsPath: String, numClasses: Int, featuresExtractor: (String) -> Array<FloatArray>, labelExtractor: (String, Int) -> FloatArray): OnHeapDataset

Takes data located in featuresPath, labelsPath with numClasses, extracts data and labels via featuresExtractor and labelExtractor to create pair of train and test OnHeapDataset.

fun create(featuresConsumer: () -> Array<FloatArray>, labelConsumer: () -> FloatArray): OnHeapDataset

Takes data from consumers featuresConsumer and labelConsumer to dataset OnHeapDataset.

fun create(features: Array<FloatArray>, labels: FloatArray): OnHeapDataset

Takes data from external data features and labels to create dataset OnHeapDataset.

fun create(preprocessors: Preprocessing, labels: FloatArray): OnHeapDataset

Use preprocessors and labels to prepare data to create dataset OnHeapDataset.

fun create(preprocessors: Preprocessing): OnHeapDataset

Use preprocessors to prepare data to create dataset OnHeapDataset.