Validation Runner
One-shot train/test evaluation runner.
Functions
Link copied to clipboard
fun <M : DataFrameClassifier> classification(formula: Formula, train: DataFrame, test: DataFrame, trainer: (Formula, DataFrame) -> M): ClassificationValidation<M>
Test a data frame classifier on a train/validation split. The accuracy will be measured and printed out on standard output.
fun <T, M : Classifier<T>> classification(x: Array<T>, y: IntArray, testx: Array<T>, testy: IntArray, trainer: (Array<T>, IntArray) -> M): ClassificationValidation<M>
Test a generic classifier on a train/validation split. The accuracy will be measured and printed out on standard output.
Link copied to clipboard
fun <M : DataFrameRegression> regression(formula: Formula, train: DataFrame, test: DataFrame, trainer: (Formula, DataFrame) -> M): RegressionValidation<M>
Test a data frame regression model on a train/validation split. The RMSE will be measured and printed out on standard output.
fun <T, M : Regression<T>> regression(x: Array<T>, y: DoubleArray, testx: Array<T>, testy: DoubleArray, trainer: (Array<T>, DoubleArray) -> M): RegressionValidation<M>
Test a generic regression model on a train/validation split. The RMSE will be measured and printed out on standard output.