X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=R%2FR6_AgghooCV.R;h=328c1413bc340d38c179bc7f591ff9243a013271;hb=HEAD;hp=485c678a06d969ecee43fe58ef4cce6d6fcbce68;hpb=afa676609daba103e43d6d4654560ca4c1c9b38b;p=agghoo.git diff --git a/R/R6_AgghooCV.R b/R/R6_AgghooCV.R index 485c678..328c141 100644 --- a/R/R6_AgghooCV.R +++ b/R/R6_AgghooCV.R @@ -12,9 +12,12 @@ AgghooCV <- R6::R6Class("AgghooCV", #' @description Create a new AgghooCV object. #' @param data Matrix or data.frame #' @param target Vector of targets (generally numeric or factor) - #' @param task "regression" or "classification" + #' @param task "regression" or "classification". + #' Default: classification if target not numeric. #' @param gmodel Generic model returning a predictive function + #' Default: tree if mixed data, knn/ppr otherwise. #' @param loss Function assessing the error of a prediction + #' Default: error rate or mean(abs(error)). initialize = function(data, target, task, gmodel, loss) { private$data <- data private$target <- target