makeCPOTrainedFromState: Create a CPOTrained with Given Internal State

Description Usage Arguments Value See Also

View source: R/RetrafoState.R

Description

This creates a new CPOTrained object which will behave according to the given state. The state should usually be obtained using getCPOTrainedState and then slightly modified. No checks for correctness of the state will (or can) be done, it is the user's responsibility to ensure that the correct CPOConstructor is used, and that the state is only modified in a way the CPO can handle.

Usage

1
makeCPOTrainedFromState(constructor, state, get.inverter = FALSE)

Arguments

constructor

[CPOConstructor]
A cpo constructor.

state

[list]
A state gotten from another CPORetrafo or CPOInverter object using getCPOTrainedState.

get.inverter

[logical(1)]
Whether to get a CPOInverter. Usually a CPORetrafo is created. This must be TRUE if the state was created from a CPOInverter, FALSE otherwise. Default is FALSE.

Value

[CPOTrained]. A CPORetrafo or CPOInverter (as if retrieved using retrafo or inverter after a primitive CPO was applied to some data) with the given state.

See Also

Other state functions: getCPOTrainedState

Other retrafo related: CPOTrained, NULLCPO, %>>%, applyCPO, as.list.CPO, clearRI, getCPOClass, getCPOName, getCPOOperatingType, getCPOPredictType, getCPOProperties, getCPOTrainedCPO, getCPOTrainedCapability, getCPOTrainedState, is.retrafo, pipeCPO, print.CPOConstructor

Other inverter related: CPOTrained, NULLCPO, %>>%, applyCPO, as.list.CPO, clearRI, getCPOClass, getCPOName, getCPOOperatingType, getCPOPredictType, getCPOProperties, getCPOTrainedCPO, getCPOTrainedCapability, getCPOTrainedState, is.inverter, pipeCPO, print.CPOConstructor


mlr-org/mlrCPO documentation built on Feb. 4, 2019, 12:16 p.m.