glassbox.cleaner._base¶
Abstract BaseTransformer defining the fit / transform interface.
BaseTransformer
¶
Bases: ABC
fit
abstractmethod
¶
Calculates parameters needed for transformation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
ndarray
|
Input array for learning |
required |
Returns:
| Type | Description |
|---|---|
Self
|
Updated state of the transformer |
Source code in glassbox/cleaner/_base.py
transform
abstractmethod
¶
Applies the transformation to the dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
ndarray
|
Input array to be transformed |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
transformed array |
Source code in glassbox/cleaner/_base.py
fit_transform
¶
Fits to the data, then transforms it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
X
|
ndarray
|
Input array to be transformed |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
transformed array |