Skip to content
ml-recall

#vgg16

2 questions from Transfer Learning

Timed test

2 questions · 2 min · score and explanations at the end

Take a test
Q 1 / 2Score 0 / 0

Question 1: Single choice

hardAI-checkedTransfer Learning

Transfer learning with VGG-16 for 5 flower classes:

vgg16 = models.vgg16(pretrained=True)
for param in vgg16.features.parameters():
    param.requires_grad = False
vgg16.classifier[6] = nn.Linear(4096, 5)
optimizer = optim.SGD(vgg16.classifier.parameters(), lr=0.001)

vgg16.classifier holds three fully connected layers, the last of which was just replaced. Which parameters change during training?

Choose one option