Looking for Machine Learning: Theory and Practice-Lecture,Section-1-Fall 2025 test answers and solutions? Browse our comprehensive collection of verified answers for Machine Learning: Theory and Practice-Lecture,Section-1-Fall 2025 at moodle.nu.edu.kz.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
A classifier outputs predictions for 3 classes (A, B, C). The confusion matrix is:
CM=[305032520228]\text{CM} =
\begin{bmatrix}
30 & 5 & 0 \\
3 & 25 & 2 \\
0 & 2 & 28
\end{bmatrix}
Where rows = true labels, columns = predicted labels.
What is the recall for class B?
| Metric | Definition | Python Command |
|---|---|---|
| A) Accuracy | 1. Correct positive predictions out of all predicted positives | accuracy_score(y_true, y_pred) |
| B) Precision | 2. Overall correctness of the model | precision_score(y_true, y_pred) |
| C) Recall | 3. Harmonic mean of precision and recall | recall_score(y_true, y_pred) |
| D) F1-Score | 4. Correct negative predictions out of all actual negatives | f1_score(y_true, y_pred) |
| E) Specificity | 5. Correct positive predictions out of all actual positives | TN / (TN + FP) |
Which of the following correctly describes the sequence and purpose of steps in Linear Discriminant Analysis (LDA)?
Match the followings:
Which of the following correctly matches the machine learning paradigm with its example?
Which of the following best describes Stochastic Gradient Descent (SGD)?
A store sells smartphones of three brands: Brand A: 40% of sales, Brand B: 35% of sales, Brand C: 25% of sales
Defect rates within the first year: Brand A: 15%, Brand B: 10%, Brand C: 20%
What is the probability that a customer buys a Brand B phone and it turns out defective in the first year?
Which one is the correct values of TP, TN, FP, FN?
Match the following:
Which of the following is the correct general form of Bayes’ Theorem when A1,A2,…,An are mutually exclusive and exhaustive events?