| CVLearnerAuditorFitter {mcboost} | R Documentation |
Cross-validated AuditorFitter from a Learner
Description
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.
Value
list with items
-
corr: pseudo-correlation between residuals and learner prediction. -
l: the trained learner.
Functions
-
CVTreeAuditorFitter: Cross-Validated auditor based on rpart -
CVRidgeAuditorFitter: Cross-Validated auditor based on glmnet
Super class
mcboost::AuditorFitter -> CVLearnerAuditorFitter
Public fields
learnerCVLearnerPredictor
Learner used for fitting residuals.
Methods
Public methods
Inherited methods
Method new()
Define a CVAuditorFitter from a learner.
Available instantiations:
CVTreeAuditorFitter (rpart) and
CVRidgeAuditorFitter (glmnet).
See mlr3pipelines::PipeOpLearnerCV for more information on
cross-validated learners.
Usage
CVLearnerAuditorFitter$new(learner, folds = 3L)
Arguments
learnermlr3::Learner
Regression Learner to use.foldsinteger
Number of folds to use for PipeOpLearnerCV. Defaults to 3.
Method fit()
Fit the cross-validated learner and compute correlation
Usage
CVLearnerAuditorFitter$fit(data, resid, mask)
Arguments
datadata.table
Features.residnumeric
Residuals (of same length as data).maskinteger
Mask applied to the data. Only used forSubgroupAuditorFitter.
Method clone()
The objects of this class are cloneable with this method.
Usage
CVLearnerAuditorFitter$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Super classes
mcboost::AuditorFitter -> mcboost::CVLearnerAuditorFitter -> CVTreeAuditorFitter
Methods
Public methods
Inherited methods
Method new()
Define a cross-validated AuditorFitter from a rpart learner
See mlr3pipelines::PipeOpLearnerCV for more information on
cross-validated learners.
Usage
CVTreeAuditorFitter$new()
Method clone()
The objects of this class are cloneable with this method.
Usage
CVTreeAuditorFitter$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Super classes
mcboost::AuditorFitter -> mcboost::CVLearnerAuditorFitter -> CVRidgeAuditorFitter
Methods
Public methods
Inherited methods
Method new()
Define a cross-validated AuditorFitter from a glmnet learner.
See mlr3pipelines::PipeOpLearnerCV for more information on
cross-validated learners.
Usage
CVRidgeAuditorFitter$new()
Method clone()
The objects of this class are cloneable with this method.
Usage
CVRidgeAuditorFitter$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
Other AuditorFitter:
LearnerAuditorFitter,
SubgroupAuditorFitter,
SubpopAuditorFitter
Other AuditorFitter:
LearnerAuditorFitter,
SubgroupAuditorFitter,
SubpopAuditorFitter
Other AuditorFitter:
LearnerAuditorFitter,
SubgroupAuditorFitter,
SubpopAuditorFitter