create
fun create(featuresPath: String, labelsPath: String, numClasses: Int, featuresExtractor: (String) -> Array<FloatArray>, labelExtractor: (String, Int) -> FloatArray): OnHeapDataset
Content copied to clipboard
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
Content copied to clipboard
Takes data from consumers featuresConsumer and labelConsumer to dataset OnHeapDataset.
fun create(features: Array<FloatArray>, labels: FloatArray): OnHeapDataset
Content copied to clipboard
Takes data from external data features and labels to create dataset OnHeapDataset.
fun create(preprocessors: Preprocessing, labels: FloatArray): OnHeapDataset
Content copied to clipboard
Use preprocessors and labels to prepare data to create dataset OnHeapDataset.
Use preprocessors to prepare data to create dataset OnHeapDataset.