diff --git a/R/PipeOpLearnerPICVPlus.R b/R/PipeOpLearnerPICVPlus.R index a1066c21f..3532737f4 100644 --- a/R/PipeOpLearnerPICVPlus.R +++ b/R/PipeOpLearnerPICVPlus.R @@ -171,8 +171,9 @@ PipeOpLearnerPICVPlus = R6Class("PipeOpLearnerPICVPlus", prds = rbindlist(map(rr$predictions(predict_sets = "test"), as.data.table), idcol = "fold") # Add states of trained models and residuals to PipeOp state + fold = NULL # for binding self$state = list(cv_model_states = map(rr$learners, "state"), - residuals = prds[, .(fold, residual = abs(truth - response))]) + residuals = prds[, list(fold, residual = abs(truth - response))]) list(NULL) }, @@ -240,5 +241,3 @@ unmarshal_model.pipeop_learner_pi_cvplus_state_marshaled = function(model, inpla } mlr_pipeops$add("learner_pi_cvplus", PipeOpLearnerPICVPlus, list(R6Class("Learner", public = list(id = "learner_pi_cvplus", task_type = "regr", param_set = ps(), packages = "mlr3pipelines"))$new())) - - diff --git a/R/PipeOpLearnerQuantiles.R b/R/PipeOpLearnerQuantiles.R index cf9972c84..e9279a51d 100644 --- a/R/PipeOpLearnerQuantiles.R +++ b/R/PipeOpLearnerQuantiles.R @@ -9,7 +9,7 @@ #' #' [`PipeOpLearnerQuantiles`] only supports [`LearnerRegr`][mlr3::LearnerRegr]s that have `quantiles` as a possible `pedict_type`. #' -#' It produces quantile-based predictions for multiple quantiles in one [`PredictionRegr`][mlr3::Prediction]. This is especially helpful if the [`LearnerRegr`][mlr3::LearnerRegr] can only predict one quantile (like for example [`LearnerRegrGBM`][mlr3extralearners::LearnerRegrGBM]) +#' It produces quantile-based predictions for multiple quantiles in one [`PredictionRegr`][mlr3::Prediction]. This is especially helpful if the [`LearnerRegr`][mlr3::LearnerRegr] can only predict one quantile (like for example `LearnerRegrGBM` in `mlr3extralearners`) #' #' Inherits the `$param_set` (and therefore `$param_set$values`) from the [`Learner`][mlr3::Learner] it is constructed from. #' diff --git a/man/mlr_pipeops_learner_quantiles.Rd b/man/mlr_pipeops_learner_quantiles.Rd index 81325206f..7ffd250e5 100644 --- a/man/mlr_pipeops_learner_quantiles.Rd +++ b/man/mlr_pipeops_learner_quantiles.Rd @@ -12,7 +12,7 @@ Wraps a \code{\link[mlr3:LearnerRegr]{LearnerRegr}} into a \code{\link{PipeOp}} \code{\link{PipeOpLearnerQuantiles}} only supports \code{\link[mlr3:LearnerRegr]{LearnerRegr}}s that have \code{quantiles} as a possible \code{pedict_type}. -It produces quantile-based predictions for multiple quantiles in one \code{\link[mlr3:Prediction]{PredictionRegr}}. This is especially helpful if the \code{\link[mlr3:LearnerRegr]{LearnerRegr}} can only predict one quantile (like for example \code{\link[mlr3extralearners:mlr_learners_regr.gbm]{LearnerRegrGBM}}) +It produces quantile-based predictions for multiple quantiles in one \code{\link[mlr3:Prediction]{PredictionRegr}}. This is especially helpful if the \code{\link[mlr3:LearnerRegr]{LearnerRegr}} can only predict one quantile (like for example \code{LearnerRegrGBM} in \code{mlr3extralearners}) Inherits the \verb{$param_set} (and therefore \verb{$param_set$values}) from the \code{\link[mlr3:Learner]{Learner}} it is constructed from. }