Graded A+
What is the primary purpose of data preprocessing in data science?
✔✔To clean and transform raw data into a usable format for analysis.
What does overfitting mean in machine learning?
✔✔When a model performs well on training data but poorly on new, unseen data.
What is the role of a loss function in machine learning?
✔✔To quantify the difference between the predicted and actual values, guiding the model's
learning process.
What is a confusion matrix in machine learning?
✔✔A table used to evaluate the performance of classification algorithms by showing true and
false positives and negatives.
What is feature engineering in data science?
1
,✔✔The process of selecting, modifying, or creating features from raw data to improve model
performance.
What is the purpose of cross-validation in model evaluation?
✔✔To assess how well a model generalizes to new, unseen data by partitioning the data into
training and testing sets.
What is the difference between classification and regression in machine learning?
✔✔Classification involves predicting categorical outcomes, while regression involves predicting
continuous numerical outcomes.
What is a decision tree algorithm?
✔✔A machine learning algorithm used for classification and regression tasks, where data is split
based on feature values to make decisions.
What is the purpose of using regularization in machine learning?
✔✔To prevent overfitting by adding a penalty to the model's complexity.
What is the k-nearest neighbors (KNN) algorithm used for?
2
,✔✔It is used for classification and regression by finding the majority class or average of the
nearest neighbors to a data point.
What is the difference between bagging and boosting in ensemble methods?
✔✔Bagging combines multiple models to reduce variance, while boosting focuses on combining
weak models to reduce bias.
What is a neural network in machine learning?
✔✔A model inspired by the human brain, composed of layers of nodes that process data and
learn patterns through training.
What is the purpose of a learning rate in machine learning?
✔✔To control the step size at which a model updates its parameters during training.
What is the role of clustering in unsupervised learning?
✔✔To group similar data points together based on their features, without any labeled outcomes.
What is the difference between precision and recall in classification?
3
, ✔✔Precision measures the accuracy of positive predictions, while recall measures how well all
positive instances are identified.
What is dimensionality reduction?
✔✔The process of reducing the number of input variables in a dataset to improve model
performance and reduce complexity.
What is the purpose of the activation function in a neural network?
✔✔To introduce non-linearity into the model and allow it to learn complex patterns in the data.
What is the role of a validation set in machine learning?
✔✔To tune hyperparameters and assess the model's performance during training to prevent
overfitting.
What is the difference between batch and online learning?
✔✔Batch learning uses the entire dataset to train the model at once, while online learning
updates the model incrementally with each data point.
What is an outlier in a dataset?
4