From 845ee882b865e383f939d459de234f69e841f477 Mon Sep 17 00:00:00 2001 From: Lennart Schneider Date: Tue, 19 Nov 2024 17:58:34 +0100 Subject: [PATCH] chore: typo in documentation of LearnerRegrKM; drop redundant task$truth() in .train --- R/LearnerRegrKM.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/LearnerRegrKM.R b/R/LearnerRegrKM.R index 1c6c13e5..315cd55e 100644 --- a/R/LearnerRegrKM.R +++ b/R/LearnerRegrKM.R @@ -6,7 +6,7 @@ #' Kriging regression. #' Calls [DiceKriging::km()] from package \CRANpkg{DiceKriging}. #' -#' * The predict type hyperparameter "type" defaults to "sk" (simple kriging). +#' * The predict type hyperparameter "type" defaults to "SK" (simple kriging). #' * The additional hyperparameter `nugget.stability` is used to overwrite the #' hyperparameter `nugget` with `nugget.stability * var(y)` before training to #' improve the numerical stability. We recommend a value of `1e-8`. @@ -91,7 +91,7 @@ LearnerRegrKM = R6Class("LearnerRegrKM", } invoke(DiceKriging::km, - response = task$truth(), + response = truth, design = data, control = pv$control, .args = remove_named(pv, c("control", "nugget.stability"))