Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc link and global variable binding/function definition #843

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions R/PipeOpLearnerPICVPlus.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down Expand Up @@ -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()))


2 changes: 1 addition & 1 deletion R/PipeOpLearnerQuantiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#'
Expand Down
2 changes: 1 addition & 1 deletion man/mlr_pipeops_learner_quantiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading