ML-02 - Logistic regression & classification Flashcards
ML-02 - Logistic regression & classification
Describe what a classification problem is.
A classification problem is when the output (𝑦) is discrete or categorical, e.g., email classified as spam, not spam.
ML-02 - Logistic regression & classification
What are the two types of classification problems?
- Binary, 2 classes (Dog or not dog; cat or dog)
- Multiclass (Dog, cat, giraffe or zebra)
ML-02 - Logistic regression & classification
Why do we use logistic regression over linear regression for classification problems?
Logistic regression handles discrete output for classification, unlike linear regression’s continuous values.
ML-02 - Logistic regression & classification
What’s the most common logistic function?
The sigmoid function (See image).
ML-02 - Logistic regression & classification
What’s the name of the pictures function? (See image)
The sigmoid function.
ML-02 - Logistic regression & classification
How do we apply logistic regression?
(See image)
ML-02 - Logistic regression & classification
How do we interpret the outputs of a logistic regression model?
Estimated probability of the positive case being true.
E.g. P(y = 1 | x ; w)
ML-02 - Logistic regression & classification
What is another name for the outputs of a logistic function?
Logits.
ML-02 - Logistic regression & classification
What is a logit?
The output values of a logistic function are often called logits.
ML-02 - Logistic regression & classification
What is a linear decision boundary?
A line that separates one class of data from another class.
(See image)
ML-02 - Logistic regression & classification
What is a non-linear decision boundary?
An equation that separates different classes of data.
(See image)
ML-02 - Logistic regression & classification
What is an advantage to using non-linear decision boundaries?
They can represent more complex decision boundaries.
ML-02 - Logistic regression & classification
How do you write a decision boundary in matrix form?
(See image)
ML-02 - Logistic regression & classification
What is the loss function used for logistic regression?
Cross-entropy loss
ML-02 - Logistic regression & classification
What’s another name for cross-entropy loss?
Log loss