identicalCPO: Check Whether Two CPO are Fundamentally the Same

View source: R/properties.R

identicalCPOR Documentation

Check Whether Two CPO are Fundamentally the Same

Description

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.

Usage

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

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()


mlrCPO documentation built on Nov. 18, 2022, 1:05 a.m.