Skip to content

Commit

Permalink
Merge pull request #110 from basf/hotfix
Browse files Browse the repository at this point in the history
Hotfix
  • Loading branch information
AnFreTh authored Aug 13, 2024
2 parents a327ef8 + 4385952 commit af6641b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mambular/models/sklearn_base_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def fit(
self : object
The fitted classifier.
"""
if not self.built and not rebuild:
if rebuild:
if not isinstance(X, pd.DataFrame):
X = pd.DataFrame(X)
if isinstance(y, pd.Series):
Expand Down
3 changes: 3 additions & 0 deletions mambular/models/tabularnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ class TabulaRNNRegressor(SklearnBaseRegressor):
The number of knots to be used in spline transformations.
"""

def __init__(self, **kwargs):
super().__init__(model=TabulaRNN, config=DefaultTabulaRNNConfig, **kwargs)


class TabulaRNNClassifier(SklearnBaseClassifier):
"""
Expand Down

0 comments on commit af6641b

Please sign in to comment.