You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the docs, DBpedia dataset has 14 classes (labels) and 40000 texts for each class. Hence, if I create batches using DataLoader(shuffle=True) as follows:
According to the docs, DBpedia dataset has 14 classes (labels) and 40000 texts for each class. Hence, if I create batches using
DataLoader(shuffle=True)
as follows:the labels should be uniformly distributed in each batch. But in practice, it seems that only a few labels are in each batch.
The output of the above code is:
How can I fix this? Or is my implementation wrong?
P.S.
Interactive code is available on GoogleColab
The text was updated successfully, but these errors were encountered: