invert {mlrCPO} | R Documentation |
Invert Target Preprocessing
Description
Invert the transformation, done on the target column(s) of a data set, after prediction.
Use either a CPORetrafo
object with invert capability (see getCPOTrainedCapability
,
or a CPOInverter
retrieved with
inverter
from a data object that was fed through a retrafo
chain.
If a CPORetrafo
object is used that contains no target-bound transformations
(i.e. has “invert” capability 0), this is a no-op.
Usage
invert(inverter, prediction, predict.type = "response")
Arguments
inverter |
[ |
prediction |
[ |
predict.type |
[ |
Value
[Prediction
| data.frame
]. A transformed Prediction
if a prediction was given,
or a data.frame
. If the first object in the chain is a CPORetrafo
object, the ‘truth’ column(s) of the
prediction will be dropped.