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 an OnHeapDataset.
fun create(featuresGenerator: () -> Array<FloatArray>, labelGenerator: () -> FloatArray): OnHeapDataset
Content copied to clipboard
Takes the data from generators featuresGenerator and labelGenerator to create an 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(pathToData: File, labels: FloatArray, preprocessing: Preprocessing = Preprocessing()): OnHeapDataset
Content copied to clipboard
Creates an OnHeapDataset from pathToData and labels using preprocessing to prepare images.
fun create(pathToData: File, labelGenerator: LabelGenerator, preprocessing: Preprocessing = Preprocessing()): OnHeapDataset
Content copied to clipboard
Creates an OnHeapDataset from pathToData and labelGenerator with preprocessing to prepare images.