Model Tuning¶
This part of the package provides a simple API for model-tuning routines.
-
gen_cross_validate(evalfun, n, model)¶ Perform in parallel a generic cross-validation (CV) routine defined in
evalfunby the splitting specified inmodel.cv_gen.Parameters: - evalfun – function to evaluate
- n – total number of data points (instances) to create
KfoldCV generator ifmodel.cv_genis undefined (null) - model –
SALSAModelwhich contains thecv_genfield of typeNullable{CrossValGenerator}[1] ormodel.output.cv_foldsfield containing predefined indices for each fold
Returns: an average of
evalfunevaluations.
-
misclass(y, yhat)¶ Calculate misclassification rate as
.
-
mse(y, yhat)¶ Calculate mean squared error as

Footnotes
| [1] | wrapper around the type defined in MLBase.jl package |