AML Supervised & Unsupervised Learning Algorithms 1 — Questions and Answers
Question 1: What distinguishes supervised learning from unsupervised learning?
- Supervised learning uses unlabeled data.
- Unsupervised learning uses labeled data.
- Supervised learning uses labeled data, unsupervised does not (Correct answer)
- They are both identical in data handling.
Correct answer: Supervised learning uses labeled data, unsupervised does not
The fundamental distinction between supervised and unsupervised learning lies in the nature of the data used for training. Supervised learning algorithms are trained on labeled datasets, meaning each data point is paired with a corresponding output or target variable. In contrast, unsupervised learning algorithms work with unlabeled data, aiming to discover hidden patterns or structures within the data without prior knowledge of outcomes.
Question 2: Which algorithm is commonly used in supervised learning?
- K-Means Clustering
- Linear Regression (Correct answer)
- PCA
- Autoencoders
Correct answer: Linear Regression
Linear Regression is a classic and widely used algorithm in supervised learning, specifically for regression tasks. It models the relationship between a dependent variable and one or more independent variables by fitting a linear equation to the observed data. This algorithm requires labeled data where the output variable is continuous, making it a prime example of a supervised approach.
Question 3: What is a common use case for unsupervised learning?
- Spam detection
- Sentiment analysis
- Customer segmentation (Correct answer)
- Credit scoring
Correct answer: Customer segmentation
Customer segmentation is a common and powerful application of unsupervised learning. In this scenario, businesses have vast amounts of customer data but no predefined labels for customer groups. Unsupervised algorithms, such as clustering, can analyze this unlabeled data to identify natural groupings of customers with similar behaviors or characteristics, enabling targeted marketing and personalized strategies.
Question 4: Which of these is an unsupervised learning technique?
- Decision Trees
- K-Means Clustering (Correct answer)
- Support Vector Machines
- Random Forest
Correct answer: K-Means Clustering
K-Means Clustering is a prominent unsupervised learning technique used for partitioning a dataset into K distinct, non-overlapping subgroups or clusters. Unlike supervised methods, it does not require pre-labeled data; instead, it identifies inherent groupings based on the similarity of data points. This makes it ideal for tasks like customer segmentation or anomaly detection where labels are unknown.
Question 5: Which metric is typically used to evaluate classification algorithms?
- Mean Squared Error
- Silhouette Score
- Accuracy (Correct answer)
- R-squared
Correct answer: Accuracy
Accuracy is a widely used and intuitive metric for evaluating classification algorithms. It measures the proportion of correctly predicted instances (both true positives and true negatives) out of the total number of instances in the dataset. While other metrics like precision, recall, and F1-score provide more nuanced insights, accuracy offers a straightforward overall measure of a classifier's performance.
Question 6: What does dimensionality reduction do in machine learning?
- Increases dataset complexity
- Removes all features from the dataset
- Adds new synthetic features
- Reduces input variables while retaining important data (Correct answer)
Correct answer: Reduces input variables while retaining important data
Dimensionality reduction is a crucial technique in machine learning that aims to simplify datasets by reducing the number of input features or variables. Its primary goal is to transform high-dimensional data into a lower-dimensional representation while preserving as much of the relevant information and variance as possible. This process helps to combat the curse of dimensionality, improve model performance, and reduce computational costs.
Question 7: Which technique is used to evaluate a supervised model’s performance?
- Feature selection
- Hyperparameter tuning
- Cross-validation (Correct answer)
- Normalization
Correct answer: Cross-validation
Cross-validation is a robust and widely adopted technique for evaluating the performance of supervised machine learning models. It involves partitioning the dataset into multiple subsets, training the model on a portion of the data, and testing it on the remaining unseen data. This method provides a more reliable estimate of a model's generalization ability and helps to mitigate issues like overfitting, ensuring the model performs well on new, unseen data.
Question 8: What is the goal of clustering in unsupervised learning?
- Classifying known labels
- Grouping similar data points (Correct answer)
- Minimizing data quality
- Encoding categorical variables
Correct answer: Grouping similar data points
The primary goal of clustering in unsupervised learning is to discover inherent structures within unlabeled datasets by grouping similar data points together. Algorithms achieve this by identifying patterns and relationships that allow them to form distinct clusters, where data points within a cluster are more similar to each other than to those in other clusters. This process helps in uncovering hidden categories or segments within the data.
Question 9: Which algorithm is NOT used for classification tasks?
- Logistic Regression
- K-Means Clustering (Correct answer)
- Naive Bayes
- Decision Tree
Correct answer: K-Means Clustering
K-Means Clustering is an unsupervised learning algorithm primarily used for grouping data points into clusters based on similarity, without prior knowledge of labels. Classification, on the other hand, is a supervised learning task where the goal is to assign predefined labels to input data. Therefore, K-Means is not designed for classification but rather for discovering inherent groupings in data.
What distinguishes supervised learning from unsupervised learning?