CPOConstructor {mlrCPO} | R Documentation |
Constructor for CPO Objects
Description
CPO
objects are created by calling CPOConstructor
s, which are
R functions that have some parameters in common, use a convenient print.CPOConstructor
generic,
and always return a CPO
object. The mlrCPO package provides many CPOConstructor
functions, which can be listed using listCPO
. It is also possible to
create custom CPOConstructor
s using makeCPO
, makeCPORetrafoless
,
link{makeCPOTargetOp}
, and makeCPOExtendedTrafo
.
Arguments
id |
[ | ||||||||||||||
export |
[
Default is “export.default”. | ||||||||||||||
affect.type |
[ | ||||||||||||||
affect.index |
[ | ||||||||||||||
affect.names |
[ | ||||||||||||||
affect.pattern |
[ | ||||||||||||||
affect.invert |
[ | ||||||||||||||
affect.pattern.ignore.case |
[ | ||||||||||||||
affect.pattern.perl |
[ | ||||||||||||||
affect.pattern.fixed |
[ |
Value
[CPO
] the constructed CPO.
CPO creation
CPOConstructors can be called like any R function, with any parameters given. Besides parameters that are
common to most CPOConstructors (listed below), it is possible to set CPO-specific hyperparameters in the
construction. Parameters that are being exported can also be modified later using the CPO
object, see the documentation there.
affect.*
parameters
When creating a CPO
, it is possible to choose which columns of the given data the CPO operates
on, and which columns it will ignore. This is done using the affect.*
parameters. It is possible to
choose columns by types, indices, names, or a regular expression matching names.
See Also
print.CPOConstructor
for possibly verbose printing.
Other CPO lifecycle related:
CPOLearner
,
CPOTrained
,
CPO
,
NULLCPO
,
%>>%()
,
attachCPO()
,
composeCPO()
,
getCPOClass()
,
getCPOConstructor()
,
getCPOTrainedCPO()
,
identicalCPO()
,
makeCPO()
Other CPOConstructor related:
getCPOClass()
,
getCPOConstructor()
,
getCPOName()
,
identicalCPO()
,
makeCPO()
,
print.CPOConstructor()
Examples
class(cpoPca) # c("CPOConstructor", "function")
print(cpoPca) # default printer
print(cpoPca, verbose = TRUE) # shows the trafo / retrafo functions
cpoPca() # creating a CPO
class(cpoPca()) # c("CPOPrimitive", "CPO")