Open j-adamczyk opened 4 months ago
It turns out that I had single-atom molecules in my dataset, and that was the reason for the error. However, maybe it could be made more descriptive? Also, no labels + no edges is a completely correct input in many cases, so I think it should be handled properly.
Describe the bug I'm trying to create a custom dataset for Grakel:
This should result in graphs with edge labels. However, later in cross-validation, I get:
My pipeline is:
EDIT: interestingly, labels initially seem to be there -
print(graphs_train[0].edge_labels)
results in{(0, 1): 2, (1, 0): 2, (1, 2): 1, (1, 3): 1, (2, 1): 1, (3, 1): 1, (3, 4): 2, (3, 5): 1, (4, 3): 2, (5, 3): 1}
. I also tried using this without pipeline, just computing the kernel, but I get the same error.