| mlr_pipeops_trafo_grayscale | R Documentation |
Calls torchvision::transform_grayscale,
see there for more information on the parameters.
The preprocessing is applied to each element of a batch individually.
R6Class inheriting from PipeOpTaskPreprocTorch.
po("trafo_grayscale"")
| Id | Type | Default | Levels | Range |
| num_output_channels | integer | - | [1, 3] |
|
| stages | character | - | train, predict, both | - |
| affect_columns | untyped | selector_all() | - | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.