Skip to content

Commit

Permalink
Update estimator.py
Browse files Browse the repository at this point in the history
Fixed check for None type
  • Loading branch information
gAldeia authored Feb 19, 2024
1 parent 81f3b6f commit 8de40e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brush/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _make_data(self, X, y=None, feature_names=[], validation_size=0.0):

assert isinstance(X, np.ndarray)

if isinstance(y, None):
if y is None:
return _brush.Dataset(X=X,
feature_names=feature_names, validation_size=validation_size)

Expand Down

0 comments on commit 8de40e1

Please sign in to comment.