exam #2 intro to data mining

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/47

encourage image

There's no tags or description

Looks like no tags are added yet.

48 Terms

1
New cards

What is overfitting?

When a model learns the training data too well, including random noise, and struggles to make accurate predictions on new data.

2
New cards
3
New cards

Why do fully grown decision trees overfit?

They keep creating branches to fit very specific details in the training data, even when those details aren't useful for predicting new data.

4
New cards
5
New cards

How does pruning help prevent overfitting?

Pruning removes branches that aren't helping the model much. This makes the tree simpler and usually helps it perform better on new data.

6
New cards
7
New cards

What is the max depth setting in a decision tree?

It limits how many levels the tree can have, which keeps it from getting too complicated.

8
New cards
9
New cards

What is minimum leaf size?

It sets the smallest number of data points allowed in a leaf. A larger minimum can prevent the tree from making branches based on just a few observations.

10
New cards
11
New cards

What is the Naive Bayes assumption?

It assumes that features are independent of each other once you know the class.

12
New cards
13
New cards

What does conditional independence mean?

It means that knowing one feature doesn't give you extra information about another feature once the class is already known.

14
New cards
15
New cards

How does Naive Bayes classify data?

It calculates the probability that an observation belongs to each class and predicts the class with the highest probability.

16
New cards
17
New cards

Why can Naive Bayes still work if its independence assumption isn't completely true?

Even when features are related, the model can still do a good job predicting which class an observation belongs to.

18
New cards
19
New cards

When is Naive Bayes commonly used?

It's often used for spam detection, email filtering, and sorting text into categories.

20
New cards
21
New cards

What is k-nearest neighbors (k-NN)?

A method that predicts the class of a new observation by looking at the closest data points around it.

22
New cards
23
New cards

What is a lazy learner?

A model that waits until it needs to make a prediction before doing most of its work. k-NN is an example.

24
New cards
25
New cards

What happens when k is small in k-NN?

The model pays attention to fewer neighbors, making it more sensitive to noise and more likely to overfit.

26
New cards
27
New cards

What happens when k is large in k-NN?

The model looks at more neighbors, making predictions smoother but potentially missing important patterns.

28
New cards
29
New cards

What is the bias-variance tradeoff with k-NN?

Small k usually means low bias and high variance, while large k usually means high bias and low variance.

30
New cards
31
New cards

Why does k-NN need feature scaling?

It uses distances to find nearby points, so features with larger numerical values could overpower features with smaller values.

32
New cards
33
New cards

What is clustering?

An unsupervised learning method that groups similar data points together without being given the correct group labels.

34
New cards
35
New cards

What is the goal of k-means clustering?

To divide data into k groups so that points within each group are as close as possible to their cluster center.

36
New cards
37
New cards

What is a centroid in k-means?

The center of a cluster, calculated by taking the average of the coordinates of all points in that cluster.

38
New cards
39
New cards

Why does initialization matter in k-means?

The starting centroids can affect where the final clusters end up, so different starting points can lead to different results.

40
New cards
41
New cards

What are random restarts in k-means?

Running k-means multiple times with different starting centroids and choosing the best result.

42
New cards
43
New cards

What is k-means++?

A way of choosing starting centroids that spreads them out more, which can help k-means find better clusters.

44
New cards
45
New cards

What is a limitation of k-means?

It works best with fairly round, similarly sized clusters and can struggle with unusual shapes or outliers.

46
New cards
47
New cards

What

48
New cards