We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745d3bc commit 1b831f2Copy full SHA for 1b831f2
1 file changed
openml/tasks/split.py
@@ -109,28 +109,7 @@ def __eq__(self, other: Any) -> bool:
109
return False
110
return True
111
112
- def __hash__(self) -> int:
113
- split_items = []
114
- for repetition in sorted(self.split):
115
- for fold in sorted(self.split[repetition]):
116
- for sample in sorted(self.split[repetition][fold]):
117
- train, test = self.split[repetition][fold][sample]
118
- split_items.append(
119
- (
120
- repetition,
121
- fold,
122
- sample,
123
- hash(train.tobytes()),
124
- hash(test.tobytes()),
125
- )
126
127
- return hash(
128
129
- self.name,
130
- self.description,
131
- tuple(split_items),
132
133
+ __hash__ = None # type: ignore
134
135
@classmethod
136
def _from_arff_file(cls, filename: Path) -> OpenMLSplit: # noqa: C901, PLR0912
0 commit comments