Skip to content

Commit

Permalink
fix: typo in pandas error
Browse files Browse the repository at this point in the history
  • Loading branch information
Optimox committed Nov 12, 2021
1 parent d725101 commit 5ac5583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_tabnet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def check_input(X):
"""
if isinstance(X, (pd.DataFrame, pd.Series)):
err_message = "Pandas DataFrame are not supported: apply X.values when calling fit"
raise(ValueError, err_message)
raise TypeError(err_message)
check_array(X)


Expand Down

0 comments on commit 5ac5583

Please sign in to comment.