Skip to content

Commit

Permalink
Modified an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Feb 19, 2021
1 parent 6d9da10 commit bea1d3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,7 @@ dask-worker-space/
# Test output
tmp/
.tmp_evaluation

# private
grep.py
memo.txt
2 changes: 1 addition & 1 deletion autoPyTorch/datasets/base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


def check_valid_data(data: Any) -> None:
if not any(hasattr(data, attr) for attr in ['__getitem__', '__len__']):
if not all(hasattr(data, attr) for attr in ['__getitem__', '__len__']):
raise ValueError(
'The specified Data for Dataset must have both __getitem__ and __len__ attribute.')

Expand Down

0 comments on commit bea1d3e

Please sign in to comment.