Skip to content

Commit

Permalink
fix: Remove unreliable __hash__ from ConfigurationSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Apr 16, 2024
1 parent ac906a4 commit d88c6bd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ConfigSpace/configuration_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,6 @@ def __eq__(self, other: Any) -> bool:

return NotImplemented

def __hash__(self) -> int:
"""Override the default hash behavior (that returns the id or the object)."""
return hash(self.__repr__())

def __repr__(self) -> str:
retval = io.StringIO()
retval.write("Configuration space object:\n Hyperparameters:\n")
Expand Down

0 comments on commit d88c6bd

Please sign in to comment.