Skip to content

Commit 4f816e9

Browse files
Added more machine learning quiz questions and explanations (#7214)
* Added more machine learning quiz questions and explanations Added multiple questions and explanations related to machine learning concepts, including overfitting, gradient descent, dimensionality reduction, evaluation metrics, reinforcement learning, confusion matrix, and neural network challenges. * Updated machine-learning/machine-learning-quiz.md necessary changes made Co-authored-by: Evgenii Bazhanov <[email protected]> * Add new questions and answers to the quiz removed --- --------- Co-authored-by: Evgenii Bazhanov <[email protected]>
1 parent 7ca5ffc commit 4f816e9

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

machine-learning/machine-learning-quiz.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,3 +1013,96 @@ d) To reduce the complexity of the tree
10131013
The correct answer is d) To reduce the complexity of the tree.
10141014

10151015
Pruning is a technique used in decision tree learning to simplify the tree by removing branches that do not significantly improve the performance of the model. This is done to prevent overfitting and improve the generalization of the model to new, unseen data. By reducing the complexity of the tree, pruning can help improve the interpretability and efficiency of the model.
1016+
1017+
#### Q129. You built a classification model and noticed that it performs very well on the training data but poorly on unseen test data. What problem does your model likely have?
1018+
1019+
a) Overfitting
1020+
b) Underfitting
1021+
c) High bias
1022+
d) Low variance
1023+
1024+
**Explanation:**
1025+
The correct answer is a) Overfitting
1026+
1027+
High training accuracy but low testing accuracy indicates that the model memorized rather than generalized — a clear sign of overfitting.
1028+
1029+
1030+
#### Q130. When using gradient descent, which of the following will happen if the learning rate is too high?
1031+
1032+
a) The algorithm may overshoot the minimum and fail to converge
1033+
b) The algorithm will converge more slowly but more accurately
1034+
c) The model will underfit the data
1035+
d) The gradient will become zero
1036+
1037+
**Explanation:**
1038+
The correct answer is a) The algorithm may overshoot the minimum and fail to converge
1039+
1040+
A large learning rate makes steps too big, causing oscillations or divergence.
1041+
1042+
1043+
#### Q131. What is the main goal of dimensionality reduction?
1044+
1045+
a) Reduce the number of input features while retaining important information
1046+
b) Increase model complexity
1047+
c) Improve bias at the cost of variance
1048+
d) Remove all correlations between features
1049+
1050+
**Explanation:**
1051+
The correct answer is a) Reduce the number of input features while retaining important information
1052+
1053+
Techniques like PCA aim to compress data by keeping maximum variance with fewer features.
1054+
1055+
1056+
1057+
#### Q132. Which of these metrics is **not** suitable for evaluating a regression model?
1058+
1059+
a) Accuracy
1060+
b) RMSE
1061+
c) MAE
1062+
d) R²
1063+
1064+
**Explanation:**
1065+
The correct answer is a) Accuracy.
1066+
1067+
Accuracy is only meaningful for classification, not regression.
1068+
1069+
1070+
1071+
#### Q133. You are developing a reinforcement learning model. What is the main component that guides the learning process?
1072+
1073+
a) Loss function
1074+
b) Reward function
1075+
c) Activation function
1076+
d) Clustering function
1077+
1078+
**Explanation:**
1079+
The correct answer is b) Reward function.
1080+
1081+
The reward function provides feedback based on actions taken, guiding the agent’s learning.
1082+
1083+
1084+
1085+
#### Q134. What is a confusion matrix used for?
1086+
1087+
a) Evaluating classification model performance
1088+
b) Measuring model bias
1089+
c) Checking data imbalance
1090+
d) Computing correlation
1091+
1092+
**Explanation:**
1093+
The correct answer is a) Evaluating classification model performance
1094+
1095+
It summarizes true/false positives and negatives, helping analyze accuracy, precision, and recall.
1096+
1097+
1098+
#### Q135. You trained a neural network and noticed it performs worse as you add more layers. What might be happening?
1099+
1100+
a) Vanishing/exploding gradients
1101+
b) Overfitting
1102+
c) High bias
1103+
d) Batch normalization error
1104+
1105+
**Explanation:**
1106+
The correct answer is a) Vanishing/exploding gradients
1107+
1108+
Deep networks may suffer gradient issues that prevent proper learning in earlier layers.

0 commit comments

Comments
 (0)