Skip to content

Commit

Permalink
Update fslite/fs/ml.py
Browse files Browse the repository at this point in the history
Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
  • Loading branch information
ypriverol and codiumai-pr-agent-pro[bot] authored Sep 25, 2024
1 parent 681a823 commit 8608117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fslite/fs/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def select_features(self, fsdf: FSDataFrame) -> FSDataFrame:
"""

if fsdf is None or fsdf.count_features() == 0 or fsdf.count_instances() == 0:
raise ValueError(
raise InvalidDataError(
"The data frame is empty or does not contain any features."
)

Expand Down

0 comments on commit 8608117

Please sign in to comment.