Inverts target-transformations done during training based on a supplied inversion function. Typically should be used in combination with a subclass of PipeOpTargetTrafo.

During prediction phase the function supplied through "fun" is called with a list containing the "prediction" as a single element, and should return a list with a single element (a Prediction) that is returned by PipeOpTargetInvert.


R6Class object inheriting from PipeOp.


PipeOpTargetInvert$new(id = "targetinvert", param_vals = list())
  • id :: character(1)
    Identifier of resulting object, default "targetinvert".

  • param_vals :: named list
    List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default list().

Input and Output Channels

PipeOpTargetInvert has two input channels named "fun" and "prediction". During training, both take NULL as input. During prediction, "fun" takes a function and "prediction" takes a Prediction.

PipeOpTargetInvert has one output channel named "output" and returns NULL during training and a Prediction during prediction.


The $state is left empty (list()).


PipeOpTargetInvert has no parameters.


Should be used in combination with a subclass of PipeOpTargetTrafo.


Only fields inherited from PipeOp.


Only methods inherited from PipeOp.

See also