Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon MLA-C01 Exam - Topic 4 Question 18 Discussion

An ML engineer is training an ML model to identify medical patients for disease screening. The tabular dataset for training contains 50,000 patient records: 1,000 with the disease and 49,000 without the disease.The ML engineer splits the dataset into a training dataset, a validation dataset, and a test dataset.What should the ML engineer do to transform the data and make the data suitable for training?
B) Apply Synthetic Minority Oversampling Technique (SMOTE) to generate new synthetic samples of the minority class in the training dataset.
A) Apply principal component analysis (PCA) to oversample the minority class in the training dataset.
C) Randomly oversample the majority class in the validation dataset.
D) Apply k-means clustering to undersample the minority class in the test dataset.

Amazon MLA-C01 Exam - Topic 4 Question 18 Discussion

Actual exam question for Amazon's MLA-C01 exam
Question #: 18
Topic #: 4
[All MLA-C01 Questions]

An ML engineer is training an ML model to identify medical patients for disease screening. The tabular dataset for training contains 50,000 patient records: 1,000 with the disease and 49,000 without the disease.

The ML engineer splits the dataset into a training dataset, a validation dataset, and a test dataset.

What should the ML engineer do to transform the data and make the data suitable for training?

Show Suggested Answer Hide Answer
Suggested Answer: B

This dataset shows severe class imbalance, with only 2% of records representing patients with the disease. AWS ML best practices recommend correcting imbalance only in the training dataset, while keeping validation and test sets representative of real-world distributions.

Synthetic Minority Oversampling Technique (SMOTE) generates synthetic samples of the minority class by interpolating between existing minority examples. This improves the model's ability to learn disease-related patterns without discarding data.

PCA is a dimensionality reduction method, not an oversampling technique. Oversampling the majority class worsens imbalance. Altering the test dataset would invalidate evaluation results.

Therefore, applying SMOTE to the training dataset is the correct approach.


Contribute your Thoughts:

0/2000 characters
Quentin
1 day ago
Yeah, B is the most suitable for training the model.
upvoted 0 times
...
Tambra
7 days ago
I feel like B addresses the imbalance directly.
upvoted 0 times
...
Nobuko
12 days ago
B is the way to go. It creates synthetic data effectively.
upvoted 0 times
...
Howard
17 days ago
D is definitely wrong. Undersampling the minority is risky.
upvoted 0 times
...
Johnna
22 days ago
C is not a good idea. Oversampling the majority won't help.
upvoted 0 times
...
Avery
27 days ago
A seems interesting, but PCA is not for oversampling.
upvoted 0 times
...
Rasheeda
1 month ago
I agree, B makes sense. We need more samples of the minority class.
upvoted 0 times
...
Ma
1 month ago
I think B is the best choice. SMOTE helps balance the classes.
upvoted 0 times
...
Emilio
1 month ago
Totally agree, SMOTE is the way to go here!
upvoted 0 times
...
Melda
2 months ago
Wait, can k-means really be used for undersampling? Sounds off.
upvoted 0 times
...
Leota
2 months ago
Randomly oversampling the majority class? That's risky!
upvoted 0 times
...
Brittni
2 months ago
PCA won't help with class imbalance, just saying.
upvoted 0 times
...
Tequila
2 months ago
SMOTE is a solid choice for balancing classes!
upvoted 0 times
...
Terina
2 months ago
K-means clustering for undersampling the minority class in the test dataset seems off to me; I thought we should keep the test set representative.
upvoted 0 times
...
Harrison
4 months ago
I feel like randomly oversampling the majority class in the validation dataset doesn't really help with training, but I can't recall the exact reason.
upvoted 0 times
...
Adaline
4 months ago
I think SMOTE is often recommended for handling imbalanced datasets, so I might lean towards option B.
upvoted 0 times
...
Asuncion
4 months ago
I remember we discussed the importance of balancing the dataset, but I'm not sure if PCA is the right choice for oversampling.
upvoted 0 times
...

Save Cancel