trainAndSave

fun trainAndSave(train: Dataset, test: Dataset, model: Sequential, path: String, accuracyThreshold: Double = 0.7)

Train model on train dataset and evaluate accuracy on test dataset until accuracyThreshold is reached then saves model to the folder path.