createTrainAndTestDatasets

fun createTrainAndTestDatasets(trainFeaturesPath: String, trainLabelsPath: String, testFeaturesPath: String, testLabelsPath: String, numClasses: Int, featuresExtractor: (String) -> Array<FloatArray>, labelExtractor: (String, Int) -> FloatArray): Pair<OnHeapDataset, OnHeapDataset>

Takes data located in trainFeaturesPath, trainLabelsPath, testFeaturesPath, testLabelsPath with numClasses, extracts data and labels via featuresExtractor and labelExtractor to create a pair of OnHeapDataset for training and testing.