NEW
Font size
WorksheetsMachine Learning CA-1
Total questions: 25
Worksheet time: 13mins
What is machine learning?
Machine learning is a programming language.
Machine learning is a type of computer hardware.
Machine learning is a method of data analysis that automates analytical model building.
Machine learning is a form of traditional statistical analysis.
What is the purpose of data preprocessing in machine learning?
The purpose of data preprocessing in machine learning is to prepare and clean the data for better model performance.
To visualize data trends before analysis.
To increase the size of the dataset.
To create complex algorithms for predictions.
Define feature engineering and its importance.
Feature engineering involves using pre-trained models without any data processing.
Feature engineering is the process of creating and selecting features from raw data to improve machine learning model performance.
Feature engineering is the process of collecting data without any modifications.
Feature engineering is only relevant for deep learning models.
What are the differences between training, test, and validation sets?
Training set: used for final evaluation; Validation set: used for training; Test set: used for tuning.
Training set: used for tuning; Validation set: used for final evaluation; Test set: used for training.
Training set: used for training the model; Validation set: used for tuning and validation; Test set: used for final evaluation.
Training set: used for validation; Validation set: used for final evaluation; Test set: used for training.
Explain the concept of cross-validation.
Cross-validation is used to eliminate outliers from data.
Cross-validation is a technique for visualizing data distributions.
Cross-validation is a method for increasing the size of a dataset.
Cross-validation is a technique for assessing how the results of a statistical analysis will generalize to an independent data set.
What is k-fold cross-validation?
A technique for visualizing data distributions in machine learning.
K-fold cross-validation is a method for evaluating a model's performance by dividing the dataset into 'k' subsets and training/testing the model 'k' times.
A method for optimizing hyperparameters by using a single training set.
A process for combining multiple models into one for better accuracy.
What does overfitting mean in the context of machine learning?
Overfitting refers to a model that generalizes well to all types of data.
Overfitting occurs when a model is too simple and cannot capture the underlying patterns.
Overfitting means a model performs well on unseen data but poorly on training data.
Overfitting means a model performs well on training data but poorly on unseen data due to excessive complexity.
How can underfitting affect a model's performance?
Underfitting enhances the model's ability to generalize to new data.
Underfitting improves model performance by reducing bias.
Underfitting can lead to poor model performance due to high bias and inability to capture data patterns.
Underfitting allows the model to perfectly fit the training data.
Describe the bias-variance trade-off.
The bias-variance trade-off refers to the trade-off between speed and accuracy in algorithms.
The bias-variance trade-off is the relationship between training and testing data.
The bias-variance trade-off is the difference between supervised and unsupervised learning.
The bias-variance trade-off is the balance between bias (error from overly simplistic models) and variance (error from overly complex models) in machine learning.
What is a confusion matrix?
A confusion matrix is a method for data normalization.
A confusion matrix is a table that displays the performance of a classification model by comparing predicted and actual values.
A confusion matrix is a type of neural network architecture.
A confusion matrix is a graphical representation of data distribution.
How do you calculate accuracy in a classification model?
Accuracy = (True Positives - False Positives) / Total Predictions
Accuracy = True Positives + False Negatives
Accuracy = (True Positives + True Negatives) / Total Predictions
Accuracy = True Positives / Total Predictions
Define precision and recall in the context of classification.
Precision = False Positives / (True Positives + False Positives); Recall = False Negatives / (True Positives + False Negatives)
Precision = True Positives / Total Samples; Recall = True Positives / Total Samples
Precision = True Positives / (True Positives + False Positives); Recall = True Positives / (True Positives + False Negatives)
Precision = True Positives / (True Positives + True Negatives); Recall = True Positives / (True Positives + False Positives)
What is the F1-score and why is it important?
The F1-score only considers true positives in its calculation.
The F1-score is a measure of a model's speed in training.
The F1-score is a measure of a model's accuracy that considers both precision and recall, important for evaluating performance in imbalanced datasets.
The F1-score is irrelevant for balanced datasets.
Explain the ROC-AUC metric.
ROC-AUC is a metric that measures the speed of a classifier.
ROC-AUC is the ratio of true positives to false positives.
ROC-AUC is a graphical representation of data distribution.
ROC-AUC is a metric that measures the ability of a classifier to distinguish between classes, represented as the area under the ROC curve.
What does MSE stand for and how is it calculated?
Mean Squared Error (MSE) is calculated as the average of the squared differences between predicted and actual values.
Mean Squared Error (MSE) is the sum of the squared differences between predicted and actual values.
Mean Squared Error (MSE) is calculated as the product of predicted and actual values.
Mean Squared Error (MSE) is the average of the absolute differences between predicted and actual values.
What is the difference between MAE and RMSE?
MAE and RMSE are the same metric.
RMSE is always smaller than MAE.
MAE is only used for classification problems.
MAE measures average error magnitude, while RMSE gives more weight to larger errors.
Define R2 Score and its significance in regression analysis.
R2 Score is a statistical measure that represents the proportion of variance for a dependent variable that's explained by an independent variable or variables in a regression model.
R2 Score measures the accuracy of predictions in classification models.
R2 Score is only applicable to time series analysis.
R2 Score indicates the number of independent variables in a model.
How does feature selection impact model performance?
Feature selection has no effect on model performance.
Feature selection always decreases accuracy.
Feature selection positively impacts model performance by improving accuracy and reducing overfitting.
Feature selection complicates the model without benefits.
How does a decision tree make predictions?
A decision tree makes predictions by using a single feature only.
A decision tree predicts by randomly selecting a leaf node.
A decision tree predicts by traversing from the root to a leaf node based on feature splits.
A decision tree predicts by averaging all feature values.
What is the equation for a simple linear regression model?
y = m + bx
y = ax^2 + c
y = mx + b
y = mx^2 + b
What is overfitting and how can it be prevented?
Overfitting is when a model learns the training data too well, leading to poor performance on new data. It can be prevented by using techniques like regularization, cross-validation, and early stopping.
Overfitting occurs when a model is too simple and cannot learn the data.
Overfitting is a technique used to improve model accuracy on training data.
Overfitting can be prevented by increasing the size of the training data only.
In what scenarios would you prefer using SVM over other classifiers?
Choose SVM when speed is the top priority.
Select SVM for binary classification only.
Use SVM for small datasets with few features.
Use SVM when dealing with high-dimensional data, clear margins, non-linear separability, and unbalanced classes.
What is the difference between classification and regression tasks?
Classification predicts numerical values; regression predicts categories.
Classification is used for time series; regression is for image analysis.
Classification predicts categories; regression predicts continuous values.
Classification requires labeled data; regression does not need any data.
What is an example of a regression problem?
Calculating the average of a set of numbers.
Determining the shortest path in a network.
Classifying emails as spam or not spam.
Predicting house prices based on various features.
What is overfitting in the context of supervised learning?
Overfitting occurs when a model is too simple and cannot capture the underlying patterns.
Overfitting is when a model performs poorly on both training and unseen data due to lack of data.
Overfitting is when a model performs well on training data but poorly on unseen data due to excessive complexity.
Overfitting refers to a model that generalizes well to new data but fails on training data.
