microsoft/Semi-supervised-learning

Unable to run eval.py on USB NLP Datasets

ShambhaviCodes opened this issue · 3 comments

Bug

Does the eval.py support NLP datasets?

Bala93 commented

Import this function

from semilearn.datasets import get_collactor

Use the collactor function in data_loader

collact_fn = get_collactor(args, args.net)
eval_loader = DataLoader(eval_dset, collact_fn)

For handling dict data.

if isinstance(x, dict):
x = {k: v.cuda() for k, v in x.items()}
else:
x = x.cuda()

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.