Skip to content

Commit

Permalink
Update fslite/fs/methods.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 718b743 commit 681a823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fslite/fs/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ def set_params(self, **kwargs):
# return self.__str__()


class InvalidMethodError(Exception):
class InvalidMethodError(ValueError):
"""
Error raised when an invalid feature selection method is used.
"""

def __init__(self, message):
super().__init__(message)
super().__init__(f"Invalid feature selection method: {message}")

0 comments on commit 681a823

Please sign in to comment.