I use benchmark/kernel/ to evaluate DiffPool on IMDB-M, IMDB-B datasets.
I use latest code.
I meet the error:
File "J:###\xxxx\train_eval.py", line 19, in cross_validation_with_val_set
) in enumerate(zip(k_fold(dataset, folds))):
File "J:###\xxxx\train_eval.py", line 83, in kfold
for , idx in skf.split(torch.zeros(len(dataset)), dataset.data.y):
File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\model_selection_split.py", line 324, in split
X, y, groups = indexable(X, y, groups)
File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\utils\validation.py", line 356, in indexable
check_consistent_length(result)
File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\utils\validation.py", line 320, in check_consistent_length
" samples: %r" % [int(l) for l in lengths])
ValueError: Found input variables with inconsistent numbers of samples: [****, ####]
It is ok for DiffPool on other datasets e.g NCI1, MUTAG.
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
I meet the error:
File "J:###\xxxx\train_eval.py", line 19, in cross_validation_with_val_set ) in enumerate(zip(k_fold(dataset, folds))): File "J:###\xxxx\train_eval.py", line 83, in kfold for , idx in skf.split(torch.zeros(len(dataset)), dataset.data.y): File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\model_selection_split.py", line 324, in split X, y, groups = indexable(X, y, groups) File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\utils\validation.py", line 356, in indexable check_consistent_length(result) File "D:\Anaconda3\envs\torch\lib\site-packages\sklearn\utils\validation.py", line 320, in check_consistent_length " samples: %r" % [int(l) for l in lengths]) ValueError: Found input variables with inconsistent numbers of samples: [****, ####]
It is ok for DiffPool on other datasets e.g NCI1, MUTAG.