# Composable Preprocessing Operators and Pipelines for Machine Learning

## Documentation for package ‘mlrCPO’ version 0.3.8

- DESCRIPTION file
- User guides, package vignettes and other documentation
- Package NEWS
- Package README

## Help Pages

A C D F G I L M N O P R S U misc

mlrCPO-package | Composable Preprocessing Operators

## -- A --

applyCPO | Apply a CPO to Data
as.list.CPO | Split a Pipeline into Its Constituents
as.list.CPOPrimitive | Split a Pipeline into Its Constituents
as.list.CPOTrained | Split a Pipeline into Its Constituents
attachCPO | Attach a CPO to a Learner

## -- C --

clearRI | Clear Retrafo and Inverter Attributes
composeCPO | CPO Composition
covrTraceCPOs | Add 'covr' coverage to CPOs
CPO | Composable Preprocessing Operators
cpoAddCols | Create Columns from Expressions
cpoApplyFun | Apply a Function Element-Wise
cpoApplyFunRegrTarget | Transform a Regression Target Variable
cpoAsNumeric | Convert All Features to Numerics
cpoCache | Caches the Result of CPO Transformations
cpoCase | Build Data-Dependent CPOs
cpoCbind | "cbind" the Result of Multiple CPOs
cpoCollapseFact | Compine Rare Factors
CPOConstructor | Constructor for CPO Objects
cpoDropConstants | Drop Constant or Near-Constant Features
cpoDropMostlyConstants | Drop Constant or Near-Constant Features
cpoDummyEncode | CPO Dummy Encoder
cpoFilterAnova | Filter Features: "anova.test"
cpoFilterCarscore | Filter Features: "carscore"
cpoFilterChiSquared | Filter Features: "chi.squared"
cpoFilterFeatures | Filter Features by Thresholding Filter Values
cpoFilterGainRatio | Filter Features: "gain.ratio"
cpoFilterInformationGain | Filter Features: "information.gain"
cpoFilterKruskal | Filter Features: "kruskal.test"
cpoFilterLinearCorrelation | Filter Features: "linear.correlation"
cpoFilterMrmr | Filter Features: "mrmr"
cpoFilterOneR | Filter Features: "oneR"
cpoFilterPermutationImportance | Filter Features: "permutation.importance"
cpoFilterRankCorrelation | Filter Features: "rank.correlation"
cpoFilterRelief | Filter Features: "relief"
cpoFilterRfCImportance | Filter Features: "cforest.importance"
cpoFilterRfImportance | Filter Features: "randomForest.importance"
cpoFilterRfSRCImportance | Filter Features: "randomForestSRC.rfsrc"
cpoFilterSymmetricalUncertainty | Filter Features: "symmetrical.uncertainty"
cpoFilterUnivariate | Filter Features: "univariate.model.score"
cpoFilterVariance | Filter Features: "variance"
cpoFixFactors | Clean Up Factorial Features
cpoIca | Construct a CPO for ICA Preprocessing
cpoImpactEncodeClassif | Impact Encoding
cpoImpactEncodeRegr | Impact Encoding
cpoImpute | Impute and Re-Impute Data
cpoImputeAll | Impute and Re-Impute Data
cpoImputeConstant | Perform Imputation with Constant Value
cpoImputeHist | Perform Imputation with Random Values
cpoImputeLearner | Perform Imputation with an 'mlr' 'Learner'
cpoImputeMax | Perform Imputation with Multiple of Minimum
cpoImputeMean | Perform Imputation with Mean Value
cpoImputeMedian | Perform Imputation with Median Value
cpoImputeMin | Perform Imputation with Multiple of Minimum
cpoImputeMode | Perform Imputation with Mode Value
cpoImputeNormal | Perform Imputation with Normally Distributed Random Values
cpoImputeUniform | Perform Imputation with Uniformly Random Values
CPOInverter | Get the Retransformation or Inversion Function from a Resulting Object
CPOLearner | CPO Learner Object
cpoLogTrafoRegr | Log-Transform a Regression Target Variable.
cpoMakeCols | Create Columns from Expressions
cpoMissingIndicators | Convert Data into Factors Indicating Missing Data
cpoModelMatrix | Create a "Model Matrix" from the Data Given a Formula
cpoMultiplex | CPO Multiplexer
cpoOversample | Over- or Undersample Binary Classification Tasks
cpoPca | Construct a CPO for PCA Preprocessing
cpoProbEncode | Probability Encoding
CPOProperties | Get the Properties of the Given CPO Object
cpoQuantileBinNumerics | Split Numeric Features into Quantile Bins
cpoRegrResiduals | Train a Model on a Task and Return the Residual Task
cpoResponseFromSE | Use the "se" 'predict.type' for "response" Prediction
CPORetrafo | Get the Retransformation or Inversion Function from a Resulting Object
cpoSample | Sample Data from a Task
cpoScale | Construct a CPO for Scaling / Centering
cpoScaleMaxAbs | Max Abs Scaling CPO
cpoScaleRange | Range Scaling CPO
cpoSelect | Drop All Columns Except Certain Selected Ones from Data
cpoSelectFreeProperties | Drop All Columns Except Certain Selected Ones from Data
cpoSmote | Perform SMOTE Oversampling for Binary Classification
cpoSpatialSign | Scale Rows to Unit Length
CPOTrained | Get the Retransformation or Inversion Function from a Resulting Object
CPOTrainedCapability | Get the CPOTrained's Capabilities
cpoTransformParams | Transform CPO Hyperparameters
cpoUndersample | Over- or Undersample Binary Classification Tasks
cpoWrap | CPO Wrapper
cpoWrapRetrafoless | CPO Wrapper

## -- D --

discrete | defined to avoid problems with the static type checker

## -- F --

funct | defined to avoid problems with the static type checker

## -- G --

getCPOAffect | Get the Selection Arguments for Affected CPOs
getCPOClass | Get the CPO Class
getCPOConstructor | Get the CPOConstructor Used to Create a CPO Object
getCPOId | Get the ID of a CPO Object
getCPOName | Get the CPO Object's Name
getCPOName.CPOConstructor | Get the CPO Object's Name
getCPOName.CPOTrained | Get the CPO Object's Name
getCPOOperatingType | Determine the Operating Type of the CPO
getCPOPredictType | Get the CPO 'predict.type'
getCPOPredictType.CPOTrained | Get the CPO 'predict.type'
getCPOProperties | Get the Properties of the Given CPO Object
getCPOProperties.CPOTrained | Get the Properties of the Given CPO Object
getCPOTrainedCapability | Get the CPOTrained's Capabilities
getCPOTrainedCPO | Get CPO Used to Train a Retrafo / Inverter
getCPOTrainedState | Get the Internal State of a CPORetrafo Object
getLearnerBare | Get the Learner with the CPOs Removed
getLearnerCPO | Get the CPO Associated with a Learner

## -- I --

identicalCPO | Check Whether Two CPO are Fundamentally the Same
invert | Invert Target Preprocessing
inverter | Get the Retransformation or Inversion Function from a Resulting Object
inverter<- | Get the Retransformation or Inversion Function from a Resulting Object
is.inverter | Check CPOInverter
is.nullcpo | Check for NULLCPO
is.retrafo | Check CPORetrafo

## -- L --

listCPO | List all Built-in CPOs

## -- M --

makeCPO | Create a Custom CPO Constructor
makeCPOCase | Build Data-Dependent CPOs
makeCPOExtendedTargetOp | Create a Custom CPO Constructor
makeCPOExtendedTrafo | Create a Custom CPO Constructor
makeCPOMultiplex | CPO Multiplexer
makeCPORetrafoless | Create a Custom CPO Constructor
makeCPOTargetOp | Create a Custom CPO Constructor
makeCPOTrainedFromState | Create a CPOTrained with Given Internal State

## -- N --

NULLCPO | CPO Composition Neutral Element
nullcpoToNull | NULLCPO to NULL
nullToNullcpo | NULL to NULLCPO

## -- O --

OperatingType | Determine the Operating Type of the CPO

## -- P --

pipeCPO | Turn a 'list' of CPOs into a Single Chained One
PredictType | Get the CPO 'predict.type'
print.CPO | Print CPO Objects
print.CPOConstructor | Print CPO Objects
print.CPOTrained | Print CPO Objects
pSS | Turn the argument list into a 'ParamSet'
pSSLrn | Turn the argument list into a 'ParamSet'

## -- R --

randomForestSRC_filters | Filter "randomForestSRC_importance" computes the importance of random forests fitted in package 'randomForestSRC'. The concrete method is selected via the 'method' parameter. Possible values are 'permute' (default), 'random', 'anti', 'permute.ensemble', 'random.ensemble', 'anti.ensemble'. See the VIMP section in the docs for [randomForestSRC::rfsrc] for details.
retrafo | Get the Retransformation or Inversion Function from a Resulting Object
retrafo<- | Get the Retransformation or Inversion Function from a Resulting Object

## -- S --

setCPOId | Set the ID of a CPO Object

## -- U --

untyped | defined to avoid problems with the static type checker

## -- misc --

!.CPO | Print CPO Objects
!.CPOConstructor | Print CPO Objects
!.CPOTrained | Print CPO Objects
%<<% | CPO Composition / Attachment / Application Operator
%<<<% | CPO Composition / Attachment / Application Operator
%<>>% | CPO Composition / Attachment / Application Operator
%>>% | CPO Composition / Attachment / Application Operator
%>|% | CPO Composition / Attachment / Application Operator
%|<% | CPO Composition / Attachment / Application Operator