Skip to content

Commit

Permalink
fix typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
schalkdaniel committed Mar 16, 2023
1 parent be4b761 commit 613a462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test_mlr_learner.R
Expand Up @@ -100,7 +100,7 @@ test_that("Custom loss for oob works", {
l1 = expect_silent({lrn("regr.compboost", oob_fraction = 0.3, iterations = 100, early_stop = TRUE,
patience = 100, loss_oob = loss_oob)})
expect_silent(l1$train(task))
offset = l$model$getCoef()$offset
offset = l1$model$getCoef()$offset
pmat = cbind(l1$predict_newdata(l1$model$data_oob)$response)
expect_equal(l1$model$response_oob$getPrediction() + offset, pmat)

Expand Down

0 comments on commit 613a462

Please sign in to comment.