io.picnicml.doddlemodel.modelselection
a strategy for splitting the dataset into multiple folds Examples: val splitter = KFoldSplitter(folds = 3) val cv = CrossValidation(metric = rmse, dataSplitter = splitter)) cv.score(model, x, y)
a function from io.picnicml.doddlemodel.metrics used to calculate each fold's score
indicates whether to shutdown the thread pool after the cv score is computed and by default it is, if the same CrossValidation instance is needed after the first call to score(...), bring implicit CrossValReusable(true) to scope and call CrossValidation.shutdownNow() after the instance is not needed anymore
Shuts down the current thread pool.
Shuts down the current thread pool. Call this if the CrossValidation instance is not needed anymore and CrossValReusable(true) is in scope.
A parallel, n-fold cross validation technique.