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 93 discussion

A company wants to classify user behavior as either fraudulent or normal. Based on internal research, a machine learning specialist will build a binary classifier based on two features: age of account, denoted by x, and transaction month, denoted by y. The class distributions are illustrated in the provided figure. The positive class is portrayed in red, while the negative class is portrayed in black.

Which model would have the HIGHEST accuracy?

  • A. Linear support vector machine (SVM)
  • B. Decision tree
  • C. Support vector machine (SVM) with a radial basis function kernel
  • D. Single perceptron with a Tanh activation function
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
[Removed]
Highly Voted 3 years, 7 months ago
Due to straight angles, I would choose Decision tree. See https://scikit-learn.org/stable/auto_examples/classification/plot_classifier_comparison.html#sphx-glr-auto-examples-classification-plot-classifier-comparison-py
upvoted 24 times
MrCarter
3 years, 6 months ago
From your link it is obvious that the best answer is still SVM with RBF kernel. In your link the SVM-RBF got 88% accuracy on the 'square-like' dataset whereas the Decision tree achieved only 80%. Answer is SVM with RBF kernel
upvoted 16 times
ttsun
3 years, 5 months ago
note the data from sklearn link is shaped as a ball of mass not a square. the RBF kernel would be better but the question shows a square. Decision tree should be better fit for this problem.
upvoted 7 times
...
...
...
SophieSu
Highly Voted 3 years, 7 months ago
B - Decision tree - is not the best answer. If you use decision tree to do clustering, every time you need to partition the space into 2 parts. Hence you will split the space into 3*3. The red points in the center box and the black points will fall into the 8 boxes around it. The black points will be identified as 8 different classes. C is the correct answer. SVM with non-linear kernel is appropriate for non-linear clustering. Even if the shape is close to rectangular. SVM with non-linear kernel will be ale to approximate the rectangular boundary shape.
upvoted 18 times
robotgeek
1 year, 7 months ago
Your statement "The black points will be identified as 8 different classes" does not make a lot of sense because the leaf node in a tree with be 1 of 2 classes, not 8 different classes just because they are visually in one place or the other
upvoted 1 times
...
Madwyn
3 years, 6 months ago
The tree works like this with this branch with 4 nodes: Age > 49? Y Age > 51? N Transaction > 28? Y Transaction > 31? N Positive Correct answer is B.
upvoted 10 times
...
...
nick3332
Most Recent 4 weeks ago
Selected Answer: B
Tip: When details are missing, assume ideal conditions, so assume no overfitting issues. Therefore is B is better than C. If there are overfitting issues or a posibility of overfitting then C is the right answer.
upvoted 1 times
...
2eb8df0
2 months ago
Selected Answer: B
Decision tree makes more sense, this decision boundary isn't complex at all and there is no risk of overfitting, all the points are inside the square
upvoted 2 times
...
MultiCloudIronMan
6 months, 2 weeks ago
Selected Answer: C
This is because the RBF kernel can handle non-linear relationships between features, which is often necessary for complex classification tasks.
upvoted 2 times
...
MJSY
7 months ago
Selected Answer: C
Decision Tree can treat the training data well but will have a risk of overfitting. the SVM with RBF kernel will be more robust.
upvoted 2 times
...
rookiee1111
1 year ago
Selected Answer: B
As the positive cases can be interpreted and separated from non positive ones by decision tree easily. SVM would have made sense if the two classes were inseparable or had complex relationship in data.
upvoted 1 times
...
vkbajoria
1 year ago
Selected Answer: C
It is C SVM with RBF Kernel can classify this image. For decision tree, it will be more difficult
upvoted 2 times
...
kyuhuck
1 year, 2 months ago
Selected Answer: C
From the visual information provided, an SVM with an RBF kernel (Option C) would likely be the best choice because it can handle the circular class distribution. The RBF kernel is especially good at dealing with such scenarios where the boundary between classes is not linear.
upvoted 2 times
...
Alice1234
1 year, 2 months ago
Answer C B. Decision Tree: Decision trees can capture non-linear patterns and are capable of splitting the feature space in complex ways. They can be very effective if the decision boundary is not linear, but they might also overfit if the decision boundary is too complex. C. SVM with RBF Kernel: An SVM with a radial basis function (RBF) kernel is designed to handle non-linear boundaries by mapping input features into higher-dimensional spaces where the classes are more likely to be separated by a hyperplane. Given the clustered nature of the classes in the image, an SVM with an RBF kernel would likely be able to separate the classes with a higher degree of accuracy.
upvoted 2 times
...
praveenaws
1 year, 4 months ago
Selected Answer: C
SVM-RBF is the correct solution
upvoted 1 times
...
Neet1983
1 year, 4 months ago
Support vector machine (SVM) with a radial basis function kernel would likely have the highest accuracy for this task because it can handle the non-linear separation required by the data.
upvoted 1 times
...
endeesa
1 year, 5 months ago
Selected Answer: C
I will lean with C
upvoted 1 times
...
akgarg00
1 year, 5 months ago
Answer is B as Decision tree can attain 100% accuracy in this case.
upvoted 1 times
...
loict
1 year, 7 months ago
Selected Answer: C
SVM with RBF and proper C and Gamma value can accomodate this square shape (https://vitalflux.com/svm-rbf-kernel-parameters-code-sample/)
upvoted 1 times
...
Mickey321
1 year, 8 months ago
Selected Answer: C
confusing between SVN or devision tree. learning towards C
upvoted 1 times
...
rags1482
1 year, 11 months ago
Answer C In general, SVMs are a good choice for tasks where accuracy is critical, such as fraud detection and medical diagnosis. Decision trees are a good choice for tasks where interpretability is important, such as customer segmentation and product recommendation.
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