{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

ML Part 2 Flashcards

(20 cards)

1
Q

What is linear regression?

A

A model that predicts a continuous outcome using a linear combination of input features.

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

What does the slope coefficient represent in linear regression?

A

The change in the predicted value for a one-unit increase in the input.

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

What is the intercept in linear regression?

A

The predicted value when all input features are zero.

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

What is the loss function used in linear regression?

A

Mean Squared Error (MSE).

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

What are assumptions of linear regression?

A

Linearity, homoscedasticity, independence, normality of residuals.

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

What is logistic regression used for?

A

Binary classification.

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

What is the output of logistic regression?

A

A probability between 0 and 1.

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

What is the sigmoid function?

A

A function that maps any value to a [0, 1] probability range.

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

How do you convert probabilities to classes in logistic regression?

A

Using a decision threshold (often 0.5).

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

What is the loss function used in logistic regression?

A

Log loss or cross-entropy loss.

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

What is a decision tree?

A

A model that splits data using feature values to make decisions.

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

What is Gini impurity?

A

A measure of how often a randomly chosen element would be incorrectly labeled.

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

What is information gain?

A

The reduction in impurity achieved by a split in a decision tree.

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

What is tree pruning?

A

Reducing the size of a tree to prevent overfitting.

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

What are advantages of decision trees?

A

Interpretability, handling non-linearities, and requiring little data preprocessing.

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

What is the k-nearest neighbors algorithm?

A

A model that classifies data based on the majority label of the k closest training examples.

17
Q

What is the key hyperparameter in k-NN?

A

The number of neighbors (k).

18
Q

What distance metric is commonly used in k-NN?

A

Euclidean distance.

19
Q

What happens if k is too small in k-NN?

A

The model becomes sensitive to noise and overfits.

20
Q

What happens if k is too large in k-NN?

A

The model may underfit and smooth over patterns.