identicalCPO: Check Whether Two CPO are Fundamentally the Same

Description Usage Arguments Value See Also

View source: R/properties.R


Check whether two CPO perform the same operation. This compares the inner workings of a CPO, but not the hyperparameter, hyperparameter-export, or affect.* settings of the CPO.

Internally, this checks whether the CPOConstructor used to create the two CPOs is identical. When creating new CPOConstructors with makeCPO and related functions, it may be necessary to overload this function, if the resulting CPOs should be differentiated in a different way.

This function is used in cpoCbind to check for equality of underlying CPOs.


identicalCPO(cpo1, cpo2)



The CPO to compare.


The CPO to compare.


[logical(1)]. TRUE if the CPOs are fundamentally the same.

See Also

Other CPO lifecycle related: CPOConstructor, CPOLearner, CPOTrained, CPO, NULLCPO, %>>%, attachCPO, composeCPO, getCPOClass, getCPOConstructor, getCPOTrainedCPO, makeCPO

Other CPOConstructor related: CPOConstructor, getCPOClass, getCPOConstructor, getCPOName, makeCPO, print.CPOConstructor

mlr-org/mlrCPO documentation built on Feb. 20, 2019, 5:43 a.m.