Skip to content

Commit

Permalink
Removed fit in BaseTransformer
Browse files Browse the repository at this point in the history
  • Loading branch information
ActurialCapital committed Jun 26, 2024
1 parent f1cdd12 commit e882bca
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions blocks/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,28 +123,6 @@ def check_kwargs(self, selected: str, kw_args: str):
if key is None:
raise ValueError(f"Missing {kw_args} to compute {selected}.")

@register_feature_names
def fit(self, X, y, **kwargs) -> "BaseTransformer":
"""
Fit the underlying estimator on training data `X` and `y`.
Parameters
----------
X : array-like of shape (n_samples, n_features)
Training data.
y : array-like of shape (n_samples,)
Target values.
**kwargs : dict
Additional keyword arguments passed to the `fit` method of the
underlying estimator.
Returns
-------
self : BaseTransformer
The fitted transformer.
"""
return self

@abstractmethod
def __call__(self, X: AnyArray, y: AnyArray = None) -> AnyArray:
pass

0 comments on commit e882bca

Please sign in to comment.