|
ocssw
V2022
|
ExclusionTransformer
Inheritance diagram for ExclusionTransformer:
Collaboration diagram for ExclusionTransformer:
Public Member Functions | |
| def | __init__ (self, exclude_slice, transformer, transformer_args=[], transformer_kwargs={}) |
Public Member Functions inherited from _CustomTransformer | |
| def | fit (self, X, *args, **kwargs) |
| def | transform (self, X, *args, **kwargs) |
| def | inverse_transform (self, X, *args, **kwargs) |
| def | fit_transform (self, X, *args, **kwargs) |
Public Attributes | |
| transformer | |
| excl | |
| keep | |
Additional Inherited Members | |
Static Public Member Functions inherited from _CustomTransformer | |
| def | config_info (*args, **kwargs) |
Detailed Description
Exclude certain columns from being transformed by the given transformer.
The passed in transformer should be a transformer class, and exclude_slice can
be any object which, when used to slice a numpy array, will give the
appropriate columns which should be excluded. So, for example:
- slice(1)
- slice(-3, None)
- slice(1,None,2)
- np.array([True, False, False, True])
etc.
Definition at line 6 of file ExclusionTransformer.py.
Constructor & Destructor Documentation
◆ __init__()
| def __init__ | ( | self, | |
| exclude_slice, | |||
| transformer, | |||
transformer_args = [], |
|||
transformer_kwargs = {} |
|||
| ) |
Definition at line 18 of file ExclusionTransformer.py.
Member Data Documentation
◆ excl
| excl |
Definition at line 20 of file ExclusionTransformer.py.
◆ keep
| keep |
Definition at line 26 of file ExclusionTransformer.py.
◆ transformer
| transformer |
Definition at line 19 of file ExclusionTransformer.py.
The documentation for this class was generated from the following file:
- /gfs-oceanweb/web/ocssw/ocssw_src/src/aquaverse/MDN/transformers/ExclusionTransformer.py

Public Member Functions inherited from 
