Compose
Compose
Bases: Transform
Compose several transforms together.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
transforms
|
Sequence[Transform]
|
Sequence of instances of
|
required |
**kwargs
|
See |
{}
|
__call__(data)
Transform data and return a result of the same type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
InputType
|
Instance of |
required |
add_base_args(arguments, overwrite_on_existing=False)
Add the init args to existing arguments
validate_keys_sequence(keys, name)
staticmethod
Ensure that the input is not a string but a sequence of strings.
inverse(warn=True)
Return a composed transform with inverted order and transforms.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
warn
|
bool
|
Issue a warning if some transforms are not invertible. |
True
|
to_hydra_config()
Return a dictionary representation of the transform for Hydra instantiation.