1What are common cases for applying Machine Learning?
Spam classification, intent classification, machine translation, image classification
2What is the definition of Machine Learning (Mitchell)?
A program learns from experience E with respect to tasks T and performance measure P, if performance at T (measured by P) improves with E
3In dialog act detection, what are T, P, and E?
T = classify the dialog act of an utterance, P = fraction of utterances correctly classified, E = a set of utterances labeled with dialog acts
4What are the three main types of learning experiences?
Supervised (labels), Unsupervised (no labels), Reinforcement (reward system)
5What is entropy in ML?
The expected number of bits needed to encode the class of a randomly drawn instance under the optimal code
6When is entropy equal to 0?
When all instances belong to one class
7What is an example entropy calculation?
For [+9, -5]: –(9/14)log(9/14) – (5/14)log(5/14) = 0.940
8What is generalization in ML?
The ability to perform well on test examples beyond the training data; memorization alone is not enough
9What is inductive bias in ML?
The preference of a learning algorithm for one solution/interpretation over another, independent of the observed data
10How is entropy(S) defined formally?
Expected number of bits to encode the class (⊕ or ⊖) of a randomly drawn member of S under optimal code
11What is information gain?
Entropy before split – entropy after split (weighted by probability of each branch)
12What is underfitting?
When a model is too simple to capture patterns (e.g., decision tree always predicting majority class)
13What is overfitting?
When a model memorizes training data idiosyncrasies (e.g., one leaf per training instance, zero training error but poor generalization)
14What are parameters in ML?
Weights or structure selected by the learning algorithm
15What are hyperparameters in ML?
Parameters that control other parameters; tunable but not selected by the learning algorithm
16What is precision?
TP / (TP + FP) → Of all messages labeled spam, fraction actually spam
17What is recall?
TP / (TP + FN) → Of all actual spam messages, fraction correctly labeled as spam
18What is the formal definition of machine learning?
A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.
19For the task of detecting a dialog act, what do T, P, and E represent?
T: Classify the dialog act of an utterance, P: The fraction of utterances correctly classified, E: A set of utterances labeled with their dialog acts.
20For a self-driving car, what could T, P, and E represent?
T: Drive on public highways using vision sensors, P: Average distance traveled before an error, E: Sequence of images and steering commands from a human driver.
21What are the disadvantages of using hand-crafted rules for classification?
They take a long time to create, it's easy to make mistakes, and they are difficult to maintain.
22What is inductive bias?
It allows a learning algorithm to prioritize one solution or interpretation over another, independent of the observed data.
23What are the base cases for stopping the growth of a decision tree?
If all instances have the same label, or if there are no features left to split on.
24What is the recursive step in the decision tree learning algorithm?
Select the best test to split the data on, split the data according to the test, and recurse on each subset of the data.
25What does Entropy(S) represent in decision tree learning?
The expected number of bits needed to encode the class of a randomly drawn member of set S.
26What kind of search does the ID3 algorithm perform?
A hill-climbing search.
27What evaluation function does the ID3 algorithm use to select the best test?
Information gain.
28When is it appropriate to use Decision Trees?
When instances are described by attribute-value pairs, the target function is discrete-valued, and the data might be noisy.
29What is Precision?
The fraction of items identified as belonging to a class that actually do belong to that class.
30What is Recall?
The fraction of items that actually belong to a class that you have successfully identified.
31In spam classification, which is typically worse: low precision or low recall?
Low precision is typically worse, as it means accidentally labeling an important message as spam.
32What does the F1 score represent?
The harmonic mean of precision and recall.
33What is the difference between Micro F1 and Macro F1 average?
Micro F1 calculates metrics globally across all classes, while Macro F1 calculates metrics for each class individually and then averages them.
34What are two ways to handle missing values in a dataset?
1) Eliminate entries/attributes with missing values. 2) Estimate missing values (e.g., fill with the mean or median).
35What is an example of an inconsistent value in data?
Having a negative value for an attribute like 'Age'.
36What are outliers?
Unexpected values that can statistically distort a dataset and negatively impact the performance of a machine learning model.
37What are common causes of outliers?
Measurement noise, faulty input, or rare events.