Skip to content

Commit d07f24a

Browse files
authored
Merge pull request #843 from mlr-org/doc_link_polrn_quantiles
Fix doc link and global variable binding/function definition
2 parents ddf85d7 + b29d5e8 commit d07f24a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

R/PipeOpLearnerPICVPlus.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ PipeOpLearnerPICVPlus = R6Class("PipeOpLearnerPICVPlus",
171171
prds = rbindlist(map(rr$predictions(predict_sets = "test"), as.data.table), idcol = "fold")
172172

173173
# Add states of trained models and residuals to PipeOp state
174+
fold = NULL # for binding
174175
self$state = list(cv_model_states = map(rr$learners, "state"),
175-
residuals = prds[, .(fold, residual = abs(truth - response))])
176+
residuals = prds[, list(fold, residual = abs(truth - response))])
176177

177178
list(NULL)
178179
},
@@ -240,5 +241,3 @@ unmarshal_model.pipeop_learner_pi_cvplus_state_marshaled = function(model, inpla
240241
}
241242

242243
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()))
243-
244-

R/PipeOpLearnerQuantiles.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#'
1010
#' [`PipeOpLearnerQuantiles`] only supports [`LearnerRegr`][mlr3::LearnerRegr]s that have `quantiles` as a possible `pedict_type`.
1111
#'
12-
#' 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])
12+
#' 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`)
1313
#'
1414
#' Inherits the `$param_set` (and therefore `$param_set$values`) from the [`Learner`][mlr3::Learner] it is constructed from.
1515
#'

man/mlr_pipeops_learner_quantiles.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)