Logistic Regression Flashcards

1
Q

What is logistic regression used for?

A

Prediction and classification models

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

Binary Classification

A

Embedding a data point with label y E {0, 1} into a feature space f(x) E R^n. Determining in data point is positive or negative.

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

Linear Binary Classification

A

Line specifies separation between positive and negative labels. Goal is to learn weight ‘w’ from data (wTf(x) > 0)

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

BOW Features

A

Bag-of-words feature representation. Predefined vector where each index represents a different feature and its presence with a 0 or 1

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

BOW and Classification

A

Can use BOW features for classification of a corpus.

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

Weight Function

A

w = (w1, …, wn)T

  • w is weight
  • set to vector of scalars
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Data Point Function

A

x = (x1, …, xn)T (n features)

  • x is data point
  • set to vector of features
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Probability of Calculating Positive Weight Function

A

P(y = +|x) = logistic(wTx)

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

How do you learn weight ‘w’?

A

Maximize log likelihood on data

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