mlr_pipeops_trafo_rgb_to_grayscale: RGB to Grayscale Transformation

mlr_pipeops_trafo_rgb_to_grayscaleR Documentation

RGB to Grayscale Transformation

Description

Calls torchvision::transform_rgb_to_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.

Construction

po("trafo_rgb_to_grayscale"")

Parameters

Id Type Default Levels
stages character - train, predict, both
affect_columns untyped selector_all()

mlr-org/mlr3torch documentation built on April 17, 2025, 8:22 p.m.