mlr_pipeopstrafo_grayscale function

Grayscale Transformation

Grayscale Transformation

Calls torchvision::transform_grayscale, see there for more information on the parameters. The preprocessing is applied to each element of a batch individually.

Format

R6Class inheriting from PipeOpTaskPreprocTorch.

Parameters

IdTypeDefaultLevelsRange
num_output_channelsinteger-[1,3][1, 3]
stagescharacter-train, predict, both-
affect_columnsuntypedselector_all()-