1/47
Looks like no tags are added yet.
What is overfitting?
When a model learns the training data too well, including random noise, and struggles to make accurate predictions on new data.
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.
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.
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.
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.
What is the Naive Bayes assumption?
It assumes that features are independent of each other once you know the class.
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.
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.
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.
When is Naive Bayes commonly used?
It's often used for spam detection, email filtering, and sorting text into categories.
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.
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.
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.
What happens when k is large in k-NN?
The model looks at more neighbors, making predictions smoother but potentially missing important patterns.
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.
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.
What is clustering?
An unsupervised learning method that groups similar data points together without being given the correct group labels.
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.
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.
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.
What are random restarts in k-means?
Running k-means multiple times with different starting centroids and choosing the best result.
What is k-means++?
A way of choosing starting centroids that spreads them out more, which can help k-means find better clusters.
What is a limitation of k-means?
It works best with fairly round, similarly sized clusters and can struggle with unusual shapes or outliers.
What