CVLearnerAuditorFitter returns the cross-validated predictions instead of the in-sample predictions.
Available data is cut into complementary subsets (folds). For each subset out-of-sample predictions are received by training a model on all other subsets and predicting afterwards on the left-out subset.
AuditorFitter
list
with items
corr
: pseudo-correlation between residuals and learner prediction.
l
: the trained learner.
CVTreeAuditorFitter
: Cross-Validated auditor based on rpart
CVRidgeAuditorFitter
: Cross-Validated auditor based on glmnet
mcboost::AuditorFitter
-> CVLearnerAuditorFitter
learner
CVLearnerPredictor
Learner used for fitting residuals.
Inherited methods
new()
Define a CVAuditorFitter
from a learner.
Available instantiations:
CVTreeAuditorFitter
(rpart) and
CVRidgeAuditorFitter
(glmnet).
See mlr3pipelines::PipeOpLearnerCV
for more information on
cross-validated learners.
CVLearnerAuditorFitter$new(learner, folds = 3L)
learner
mlr3::Learner
Regression Learner to use.
folds
integer
Number of folds to use for PipeOpLearnerCV. Defaults to 3.
fit()
Fit the cross-validated learner and compute correlation
CVLearnerAuditorFitter$fit(data, resid, mask)
data
data.table
Features.
resid
numeric
Residuals (of same length as data).
mask
integer
Mask applied to the data. Only used for SubgroupAuditorFitter
.
clone()
The objects of this class are cloneable with this method.
CVLearnerAuditorFitter$clone(deep = FALSE)
deep
Whether to make a deep clone.
mcboost::AuditorFitter
-> mcboost::CVLearnerAuditorFitter
-> CVTreeAuditorFitter
Inherited methods
new()
Define a cross-validated AuditorFitter from a rpart learner
See mlr3pipelines::PipeOpLearnerCV
for more information on
cross-validated learners.
CVTreeAuditorFitter$new()
clone()
The objects of this class are cloneable with this method.
CVTreeAuditorFitter$clone(deep = FALSE)
deep
Whether to make a deep clone.
mcboost::AuditorFitter
-> mcboost::CVLearnerAuditorFitter
-> CVRidgeAuditorFitter
Inherited methods
new()
Define a cross-validated AuditorFitter from a glmnet learner.
See mlr3pipelines::PipeOpLearnerCV
for more information on
cross-validated learners.
CVRidgeAuditorFitter$new()
clone()
The objects of this class are cloneable with this method.
CVRidgeAuditorFitter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other AuditorFitter:
LearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter
Other AuditorFitter:
LearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter
Other AuditorFitter:
LearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter