\'\'\'
# Selecting classes 0 and 8 idx = (trainset.targets==0) | (trainset.targets==8) trainset.targets = trainset.targets[idx] trainset.data = trainset.data[