mlr_pipeopsaugment_random_affine function

Random Affine Augmentation

Random Affine Augmentation

Calls torchvision::transform_random_affine, 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
degreesuntyped--
translateuntypedNULL-
scaleuntypedNULL-
resampleinteger0(Inf,Inf)(-Inf, Inf)
fillcoloruntyped0-
stagescharacter-train, predict, both-
affect_columnsuntypedselector_all()-