Logistic Regression Flashcards

1
Q

a supervised, classification learning algorithm where features can be discrete or continuous or a mix of both.

A

Logistic Regression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Used to map the output of a linear regression model to a 0-1 range. It will always return a value from 0-1.

A

Sigmoid Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the Sigmoid Function formula?

A

1/1+e^-x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the pre-sigmoid value Logistic Regression Model?

A

1/1+e^ -(t1x1+t2x2+…tdxd+t0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

shows statistics of the prediction

A

Confusion Matrix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

predicted and classified as positive

A

True Positive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

predicted and classified as negative

A

True Negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

predicted as negative but it is positive

A

False Negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

predicted as positive but it is negative

A

False Positive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

number of correctly classified instances over all instances

A

Accuracy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the formula of Accuracy?

A

TP+TN/TP+FP+TN+FN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

out of all instances that are predicted as positive, how many are really positive?

A

Precision

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the formula for precision?

A

TP/TP+FP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

out of all positive instances, how many are predicted as positive?

A

Recall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the formula for Recall?

A

TP/TP+FN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

harmonic mean of precision and recall

16
Q

What is the formula of F1-Score?

A

2 x ((precision x recall)/(precision + recall))

17
Q

It converts scores into a probabilistic representation that totals to 1. It can handle negative values.

A

Softmax Function

18
Q

label for a single instance is converted to what?

A

one-hot encoded vector

19
Q

It shows the prediction results across the feature space. It is determined by the value of feature x_i, where z=0.

A

Decision Boundary

20
Q

This is used for more than 2 classes

A

Multinomial Logistic Regression