Instantiates an AuditorFitter that trains a mlr3::Learner
on the data.
AuditorFitter
list
with items
corr
: pseudo-correlation between residuals and learner prediction.
l
: the trained learner.
TreeAuditorFitter
: Learner auditor based on rpart
RidgeAuditorFitter
: Learner auditor based on glmnet
mcboost::AuditorFitter
-> LearnerAuditorFitter
learner
LearnerPredictor
Learner used for fitting residuals.
Inherited methods
new()
Define an AuditorFitter
from a Learner.
Available instantiations:
TreeAuditorFitter
(rpart) and
RidgeAuditorFitter
(glmnet).
LearnerAuditorFitter$new(learner)
learner
mlr3::Learner
Regression learner to use.
fit()
Fit the learner and compute correlation
LearnerAuditorFitter$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.
LearnerAuditorFitter$clone(deep = FALSE)
deep
Whether to make a deep clone.
mcboost::AuditorFitter
-> mcboost::LearnerAuditorFitter
-> TreeAuditorFitter
Inherited methods
new()
Define a AuditorFitter from a rpart learner.
TreeAuditorFitter$new()
clone()
The objects of this class are cloneable with this method.
TreeAuditorFitter$clone(deep = FALSE)
deep
Whether to make a deep clone.
mcboost::AuditorFitter
-> mcboost::LearnerAuditorFitter
-> RidgeAuditorFitter
Other AuditorFitter:
CVLearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter
Other AuditorFitter:
CVLearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter
Other AuditorFitter:
CVLearnerAuditorFitter
,
SubgroupAuditorFitter
,
SubpopAuditorFitter