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 6d9da10 commit bea1d3eCopy full SHA for bea1d3e
.gitignore
@@ -138,3 +138,7 @@ dask-worker-space/
138
# Test output
139
tmp/
140
.tmp_evaluation
141
+
142
+# private
143
+grep.py
144
+memo.txt
autoPyTorch/datasets/base_dataset.py
@@ -27,7 +27,7 @@
27
28
29
def check_valid_data(data: Any) -> None:
30
- if not any(hasattr(data, attr) for attr in ['__getitem__', '__len__']):
+ if not all(hasattr(data, attr) for attr in ['__getitem__', '__len__']):
31
raise ValueError(
32
'The specified Data for Dataset must have both __getitem__ and __len__ attribute.')
33
0 commit comments