You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below will err if we don't specify store_models = TRUE because the out-of-bag error active binding extracts this information from learner$model, which will fail of the model is not stored.
Instead of making the out-of-bag error active binding access the learner's $model, we can instead support the private function $.extract_oob_error() which will add the out-of-bag error score to the learner's $state, which is even accessible when store_models = FALSE.
This is already implemented for internal validation scores and internal tuned values:
It is currently necessary to store the
$model
of a learner in order to access itsoob_error
.An example for this is the random forest:
The code below will err if we don't specify
store_models = TRUE
because the out-of-bag error active binding extracts this information fromlearner$model
, which will fail of the model is not stored.Instead of making the out-of-bag error active binding access the learner's
$model
, we can instead support the private function$.extract_oob_error()
which will add the out-of-bag error score to the learner's$state
, which is even accessible whenstore_models = FALSE
.This is already implemented for internal validation scores and internal tuned values:
mlr3/R/worker.R
Lines 94 to 100 in 5ffcfee
The text was updated successfully, but these errors were encountered: