Final (1) Flashcards

(13 cards)

1
Q

What does StandardScaler do?

A

Scales features to mean 0 and variance 1.

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

What does RobustScaler do?

A

Scales features using median and IQR (median = 0, IQR = 1).

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

What does MinMaxScaler do?

A

Scales features to a range between 0 and 1.

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

What does Normalizer do?

A

Scales each row to have unit norm (length of 1).

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

When do you use Ordinal Encoding?

A

For ordered categorical values.

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

When do you use One Hot Encoding?

A

For nominal (unordered) categorical values.

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

What tool helps apply both encoding and scaling?

A

ColumnTransformer

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

What is “Bag of Words”?

A

A method that converts text to numerical data by counting word frequency.

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

What does PCA do?

A

Reduces the number of features and can also de-noise data.

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

What is linear regression’s number of hyperparameters?

A

None

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

What does Ridge regression add?

A

L2 regularization via alpha.

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

What does Lasso regression add?

A

L1 regularization via alpha, can shrink some coefficients to zero.

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

What does a large alpha mean?

A

More regularization and simpler models.

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