Skip to content

Commit

Permalink
add type cast to cover iterables
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w-feldmann committed May 5, 2024
1 parent 7ed4b24 commit eaeee46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion molpipeline/estimators/chemprop/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def fit(
The fitted model.
"""
if self._is_classifier():
self._classes_ = np.unique(y)
self._classes_ = np.unique(list(y))
return super().fit(X, y)

def predict(
Expand Down

0 comments on commit eaeee46

Please sign in to comment.