【发布时间】:2019-04-18 17:11:56
【问题描述】:
使用已经实现的预处理包装器以及 mlr 中自己的包装器,我想知道以下示例中预处理步骤的计算顺序是什么?
classif.lrn.net = makePreprocWrapperCaret(classif.lrn.net, ppc.nzv=TRUE, ppc.corr=TRUE, ppc.conditionalX=TRUE, ppc.center=TRUE, ppc.scale=TRUE, ppc.spatialSign=TRUE)
classif.lrn.net = makeSMOTEWrapper(classif.lrn.net)
classif.lrn.net = makeImputeWrapper(learner=classif.lrn.net, classes = list(numeric = imputeMedian(), integer =imputeMedian()))
从 mlr-Tutorial 我知道在 caretPreprocWrapper 中,操作按以下顺序应用:
近零方差滤波器、相关滤波器、插补、空间符号。
此外,SMOTE-Wrapper 将在之前进行(因为它在代码中的 caretWrapper 之后)。
但是 immputationWrapper 什么时候会进行呢? 我认为在空间符号转换之前进行插补是很重要的(这个顺序也在 caretPreprocWrapper 中实现)。由于我使用自己的 imputation-Wrapper,我不确定是否以及如何确保在不同的 caretPreproc-Steps 之间完成插补?
【问题讨论】:
标签: r imputation mlr