A Learner that encapsulates a Graph to be used in
mlr3 resampling and benchmarks.
The Graph must return a single Prediction on its $predict()
call. The result of the $train() call is discarded, only the
internal state changes during training are used.