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)

Arguments

cpo1

[CPO]
The CPO to compare.

cpo2

[CPO]
The CPO to compare.

Value

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

See also