createTrainAndTestDatasets
fun createTrainAndTestDatasets(trainFeaturesPath: String, trainLabelsPath: String, testFeaturesPath: String, testLabelsPath: String, numClasses: Int, featuresExtractor: (String) -> Array<FloatArray>, labelExtractor: (String, Int) -> FloatArray): Pair<OnHeapDataset, OnHeapDataset>
Content copied to clipboard
Takes data located in trainFeaturesPath, trainLabelsPath, testFeaturesPath, testLabelsPath with numClasses, extracts data and labels via featuresExtractor and labelExtractor to create pair of train and test OnHeapDataset.