How to separate graphs by classes in dataset 'BACE' #5463
Answered
by
Padarn
jiaruHithub
asked this question in
Q&A
-
How to separate graphs by classes in dataset 'BACE'? |
Beta Was this translation helpful? Give feedback.
Answered by
Padarn
Sep 18, 2022
Replies: 1 comment
-
You mean to extract the list of batch indexes for each class? If so you could just do something simple like from collections import defaultdict
classes = {}
for i, d in enumerate(ds):
classes[d.y.item()].append(i) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jiaruHithub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You mean to extract the list of batch indexes for each class? If so you could just do something simple like