Internal functions in package modeltuner
modeltuner-internal.Rd
These functions are mainly for internal purposes and will normally not be called directly by the user.
Usage
add_cv_info(x, cvobj, ...)
prnt_cv_info(x, ...)
eval_crit(crit, x, ...)
has_cv_fits(x)
oos_indices(folds)
cv_simple(x, folds, metric, iter, keep_fits, verbose, ...)
evlog_int(classObj, x, metric, eval_weights, na.rm, ...)
extract(x, i)
cb_xgb_iteration(period = 1, prefix = "", keep_final_msg = FALSE)
get_xy(object, data, weights = NULL, ...)
get_xy2(data, weights = NULL, ...)
prnt_compact(x, ...)
Details
add_cv_info()
is a generic auxiliary function adding info from cv to a model. Apply to model, returns model.
eval_crit()
is a generic auxiliary function evaluating preference criteria for a given ifms.
has_cv_fits()
is a generic auxiliary function that discerns whether a cv contains the
cross-validation fits or not.
oos_indices()
identifies the out-of-sample indices in a predictions
matrix.
cv_simple()
is a generic function performing cross-validation for one model.
evlog_int()
is a generic function performing internal calculations
in evaluation_log()
.
extract()
is a generic extraction function used internally.
cb_xgb_iteration()
is a callback function used when a xgboost model is cross-validated
if verbose=TRUE
.
It is a reduced version of cb.print.evaluation
get_xy()
is a generic taking formula and data, returns list of x matrix, y vector and terms object.
Designed for internal use in formula
-interface wrappers.
get_xy2()
is a generic dispatching on the second argument, data
.
prnt_compact()
and prnt_cv_info()
are generic utility functions used in some print
methods.