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
evalfun
by the splitting specified inmodel.cv_gen
.Parameters: - evalfun – function to evaluate
- n – total number of data points (instances) to create
Kfold
CV generator ifmodel.cv_gen
is undefined (null) - model –
SALSAModel
which contains thecv_gen
field of typeNullable{CrossValGenerator}
[1] ormodel.output.cv_folds
field containing predefined indices for each fold
Returns: an average of
evalfun
evaluations.
-
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 |