Lecture 2 + Lecture 2 (IDK)

37 flashcardsby Amogh
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
What are common cases for applying Machine Learning?
Spam classification, intent classification, machine translation, image classification
2
What 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
3
In 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
4
What are the three main types of learning experiences?
Supervised (labels), Unsupervised (no labels), Reinforcement (reward system)
5
What is entropy in ML?
The expected number of bits needed to encode the class of a randomly drawn instance under the optimal code
6
When is entropy equal to 0?
When all instances belong to one class
7
What is an example entropy calculation?
For [+9, -5]: –(9/14)log(9/14) – (5/14)log(5/14) = 0.940
8
What is generalization in ML?
The ability to perform well on test examples beyond the training data; memorization alone is not enough
9
What is inductive bias in ML?
The preference of a learning algorithm for one solution/interpretation over another, independent of the observed data
10
How is entropy(S) defined formally?
Expected number of bits to encode the class (⊕ or ⊖) of a randomly drawn member of S under optimal code
11
What is information gain?
Entropy before split – entropy after split (weighted by probability of each branch)
12
What is underfitting?
When a model is too simple to capture patterns (e.g., decision tree always predicting majority class)
13
What is overfitting?
When a model memorizes training data idiosyncrasies (e.g., one leaf per training instance, zero training error but poor generalization)
14
What are parameters in ML?
Weights or structure selected by the learning algorithm
15
What are hyperparameters in ML?
Parameters that control other parameters; tunable but not selected by the learning algorithm
16
What is precision?
TP / (TP + FP) → Of all messages labeled spam, fraction actually spam
17
What is recall?
TP / (TP + FN) → Of all actual spam messages, fraction correctly labeled as spam
18
What 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.
19
For 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.
20
For 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.
21
What 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.
22
What is inductive bias?
It allows a learning algorithm to prioritize one solution or interpretation over another, independent of the observed data.
23
What 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.
24
What 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.
25
What 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.
26
What kind of search does the ID3 algorithm perform?
A hill-climbing search.
27
What evaluation function does the ID3 algorithm use to select the best test?
Information gain.
28
When 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.
29
What is Precision?
The fraction of items identified as belonging to a class that actually do belong to that class.
30
What is Recall?
The fraction of items that actually belong to a class that you have successfully identified.
31
In 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.
32
What does the F1 score represent?
The harmonic mean of precision and recall.
33
What 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.
34
What 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).
35
What is an example of an inconsistent value in data?
Having a negative value for an attribute like 'Age'.
36
What are outliers?
Unexpected values that can statistically distort a dataset and negatively impact the performance of a machine learning model.
37
What are common causes of outliers?
Measurement noise, faulty input, or rare events.
Study all 37 cards for free