OneHot
OneHot
Bases: LabelTransform
Reencode label maps using one-hot encoding.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_classes
|
int
|
-1
|
|
**kwargs
|
See |
{}
|
__call__(data)
Transform data and return a result of the same type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
TypeTransformInput
|
Instance of |
required |
to_hydra_config()
Return a dictionary representation of the transform for Hydra instantiation.