Skip to content

Commit

Permalink
[BUG] fix #151 (#153)
Browse files Browse the repository at this point in the history
* BUG FIX: #151

* MODIFY latest

* Codespell
  • Loading branch information
samihamdan committed Jun 16, 2022
1 parent 0f45481 commit aab4260
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/changes/latest.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Bugs

- Fix Bug in the transformer wrapper implementation (:gh:`122` by `Sami Hamdan`_).

- Fix Bug Target Transformer missing BaseEstimator (:gh:`151` by `Sami Hamdan`_).

API changes
~~~~~~~~~~~

Expand Down
4 changes: 2 additions & 2 deletions julearn/transformers/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# License: AGPL
from inspect import signature
import pandas as pd
from sklearn.base import TransformerMixin
from sklearn.base import TransformerMixin, BaseEstimator

from .. utils import raise_error


class TargetTransfromerWrapper(TransformerMixin):
class TargetTransfromerWrapper(TransformerMixin, BaseEstimator):

def __init__(self, transformer, **params):
"""Using a sklearn transformer and applying them to the target/y.
Expand Down

0 comments on commit aab4260

Please sign in to comment.