exam questions

Exam AWS Certified Machine Learning - Specialty All Questions

View all questions & answers for the AWS Certified Machine Learning - Specialty exam

Exam AWS Certified Machine Learning - Specialty topic 1 question 48 discussion

A Machine Learning Specialist is training a model to identify the make and model of vehicles in images. The Specialist wants to use transfer learning and an existing model trained on images of general objects. The Specialist collated a large custom dataset of pictures containing different vehicle makes and models.
What should the Specialist do to initialize the model to re-train it with the custom data?

  • A. Initialize the model with random weights in all layers including the last fully connected layer.
  • B. Initialize the model with pre-trained weights in all layers and replace the last fully connected layer.
  • C. Initialize the model with random weights in all layers and replace the last fully connected layer.
  • D. Initialize the model with pre-trained weights in all layers including the last fully connected layer.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rsimham
Highly Voted 3 years, 7 months ago
Ans B sounds correct
upvoted 28 times
...
AjoseO
Highly Voted 2 years, 2 months ago
Selected Answer: B
In transfer learning, a pre-trained model is used as a starting point to train a new model on a different task, typically using a smaller dataset. The pre-trained model contains weights that have been learned from a large amount of data on a related task, and these weights can be leveraged to train the new model more efficiently. To re-train the model with the custom data, the Specialist should initialize the model with pre-trained weights in all layers, as these weights can provide a good starting point for the new task. The Specialist should then replace the last fully connected layer, which is responsible for making the final predictions, as this layer will likely need to be modified to reflect the new task. By keeping the pre-trained weights in the other layers, the Specialist can take advantage of the knowledge learned from the previous task, and potentially speed up the training process.
upvoted 9 times
...
JonSno
Most Recent 2 months, 1 week ago
Selected Answer: B
Explanation: The Machine Learning Specialist wants to use transfer learning with an existing model trained on general object images and fine-tune it for vehicle make and model classification. The best approach is: Use pre-trained weights from the existing model for feature extraction. Replace the last fully connected (FC) layer to match the number of vehicle classes. Fine-tune the new model on the vehicle dataset. Why This Works? Lower training time: The model has already learned useful features from general objects (e.g., edges, shapes). Improves accuracy: Instead of training from scratch, transfer learning leverages knowledge from large datasets (e.g., ImageNet). Avoids catastrophic forgetting: Reusing pre-trained weights preserves learned low- and mid-level features while adapting the last layer for new classes.
upvoted 1 times
...
itsme1
7 months, 2 weeks ago
Selected Answer: D
Transfer learning helps accelerate the training and at this point, model has yet to learn from the new data. So, all layers including the fully-connected by replaced. Eventually, the training will update the fully-connected layer. The question is about initialization, so we should initialize the fully-connected layers too.
upvoted 1 times
...
loict
1 year, 7 months ago
Selected Answer: B
A. NO - random weights does not allow transfer learning B. YES - the last layer gives the final classes, we want to have new classes C. NO - random weights does not allow transfer learning D. NO - the last layer gives the final classes, we want to have new classes
upvoted 2 times
...
Mickey321
1 year, 8 months ago
Selected Answer: B
Option B
upvoted 1 times
...
kaike_reis
1 year, 9 months ago
Selected Answer: B
For Transfer Learning, A and C are incorrect because we restart the model. The correct is letter B
upvoted 2 times
...
SRB1337
1 year, 10 months ago
B. The reason is, fine-tuning a model means to use the weights/biases trained before. also no matter which strategy you go for in transfer learning (fine-tuning or feature extraction) you always replace the last or last few layers.
upvoted 3 times
...
mirik
1 year, 10 months ago
Selected Answer: C
The task is to " to re-train it with the custom data". That means, it is not transfer learning anymore. The "transfer learning" is just a title to make a question tricky. So, in this case we should randomize the weights and retrain whole model from scratch on custom user's images only. The correct answer is C.
upvoted 1 times
FloKo
1 year, 9 months ago
I think retraining revers in this context to the training on the custom data that the expert as already conducted before thinking about transfer learning.
upvoted 1 times
...
...
mirik
1 year, 10 months ago
The task is to " to re-train it with the custom data". That means, it is not transfer learning anymore. The "transfer learning" is just a title to make a question tricky. So, in this case we should randomize the weights and retrain whole model from scratch on custom user's images only. The correct answer is C.
upvoted 1 times
...
Peeking
2 years, 4 months ago
Selected Answer: B
The fully connected layer will need to be trained from scratch to incorporate the features of his domain problem (Car models)
upvoted 3 times
...
Shailendraa
2 years, 7 months ago
12-sep exam
upvoted 2 times
...
chrisdavidi
2 years, 9 months ago
D is the best - here is why Question is not to design a final production with deep lense - it is to use it as a dev platform to comeup with a edge ML vs. dump load all to S3 -which is very wasteful! AWS did not mae deeplense as a toy for devs! it is meant to help companies experiment with edge ML And then copy and reuse the open hardware platfom
upvoted 1 times
...
ckkobe24
2 years, 11 months ago
Selected Answer: B
one of the method to implement transfer learning
upvoted 2 times
...
DzR
3 years, 6 months ago
I will go with B, we are mainly concerned with the output layer for us to get the desired results, hence we need to replace it.
upvoted 1 times
...
bobdylan1
3 years, 6 months ago
B is correct
upvoted 2 times
...
sebtac
3 years, 6 months ago
Actually, it should be NONE of IT!.... it should be like B with exception that 20-40% top layers should be retrained :) -- this is classic transfer learning setup, so B is the answer here.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago