最初,数据加载器是用某些示例创建的。在训练过程中,我需要更换一个数据采集器中的样本。如何把它替换成数据采集器。
train_dataloader = DataLoader(train_data, sampler=train_sampler, batch_size=batch_size)
for sample,label in train_dataloader:
prediction of model
select misclassified samples and change them in train_dataloader but how to