Wraps a Graph that transforms a target during training and inverts the transformation during prediction. This is done as follows:

• Specify a transformation and inversion function using any subclass of PipeOpTargetTrafo, defaults to PipeOpTargetMutate, afterwards apply graph.

• At the very end, during prediction the transformation is inverted using PipeOpTargetInvert.

• To set a transformation and inversion function for PipeOpTargetMutate see the parameters trafo and inverter of the param_set of the resulting Graph.

• Note that the input graph is not explicitly checked to actually return a Prediction during prediction.

pipeline_targettrafo(
graph,