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
I have solved my problem. The reason is the trainset is not shuffled before split it. Shuffle the indices before split
indices = list(range(n_train))
shuffle = 1
if shuffle:
np.random.seed(42)
np.random.shuffle(indices)
train_sampler = torch.utils.data.sampler.SubsetRandomSampler(indices[:split])
loss and prec1 during training is a normal drop, but during validate ,loss is always some value, prec1 also keep zero. do you met this problem?
The text was updated successfully, but these errors were encountered: