Machine Learning test (Intermediate)
30 questions · 35 minutes · ₹5
Supervised learning, evaluation, overfitting and features.
Take the Machine Learning test
What it covers
- Bias and variance
- Train/validation/test splits
- Classification metrics
- Regularisation
- Feature engineering
Interview format
- Questions: 30 questions — 18 multiple choice, 9 multi-answer, 3 predict-the-output
- Time: 35 minutes, timed from the first question
- Difficulty: Intermediate
- Skill area: AI & ML
- Price: ₹5 a test
Earn a certificate
The Machine Learning test is one of the 5 tests of the ML Engineer learning path. Pass it and the other 4 tests at 70% or more and readyforhires issues you a verifiable certificate in your name, with its own code and verify link to share or add to LinkedIn.
Sample questions
5 sample questions from the Machine Learning test, with the answers. Samples are taken out of the live test, so you will not meet these when you sit it.
Which of the following correctly defines precision in a classification model?
- Accuracy = (TP + FN)/all
- Precision = TP/(TP + FP)
- Recall = FP/(TP + FP)
- F1 = (Precision + Recall)/2
Answer: B. Precision = TP/(TP + FP)
Precision is defined as the ratio of true positives to the sum of true positives and false positives. This metric indicates how many of the predicted positive instances are actually positive. Accuracy is (TP + TN)/all, recall is TP/(TP + FN), and F1 is the harmonic mean of precision and recall.
If both the training and validation errors are high and close to each other, what is this an indication of?
- Low bias and high variance
- High variance
- Low bias and low variance
- High bias
Answer: D. High bias
When both the training and validation errors are high and close to each other, it indicates that the model is underfitting, which is associated with high bias. This occurs when the model is too simple to capture the underlying patterns in the data. A large gap between training and validation errors, on the other hand, indicates high variance (overfitting).
Which of the following correctly describes the behavior of the first principal component in principal component analysis (PCA)?
- The first principal component captures the direction of average variance in the data
- The first principal component captures the direction of maximum variance in the data
- The first principal component captures the direction of zero variance in the data
- The first principal component captures the direction of minimum variance in the data
Answer: B. The first principal component captures the direction of maximum variance in the data
Principal component analysis (PCA) identifies directions (principal components) that maximize variance in the data. The first principal component corresponds to the direction of highest variance, and subsequent components are orthogonal to the first and capture the next highest variance, and so on. This ensures that the first component accounts for the largest possible amount of variability in the dataset.
Which metric measures the proportion of true positive predictions to the total number of positive predictions made by a model?
- Accuracy
- F1 score
- Precision
- Recall
Answer: C. Precision
Precision is the ratio of true positive predictions to the total number of positive predictions made by the model. It measures how many of the positively predicted instances are actually correct. This is particularly important in scenarios where false positives are costly, such as in medical diagnoses or spam detection.
Which of the following statements correctly describes the F1 score?
- The F1 score is the harmonic mean of precision and recall.
- The F1 score is calculated as the sum of precision and recall.
- The F1 score is equal to the product of precision and recall.
- The F1 score is calculated as the arithmetic mean of precision and recall.
Answer: A. The F1 score is the harmonic mean of precision and recall.
The F1 score is calculated as the harmonic mean of precision and recall, making it a balanced measure of model performance. Other options are incorrect because they either describe unrelated metrics or misrepresent the F1 score calculation.
Frequently asked questions
- How many questions are in the Machine Learning test?
- 30 questions (18 multiple choice, 9 multi-answer, 3 predict-the-output), with 35 minutes to answer them.
- What does the Machine Learning test cover?
- Bias and variance, Train/validation/test splits, Classification metrics, Regularisation, Feature engineering.
- Is the Machine Learning test free?
- It costs ₹5 a test, paid per test with no subscription. Prices in Indian rupees (INR).
- What level is the Machine Learning test?
- Intermediate, in AI & ML.