22 questions pulled from past papers whose wording matches this week's topics, newest first, duplicates removed. Pick your answers, then press Check answers. Figures and answer keys are the originals.
You’re working on a dataset containing customer purchase data, and you want to segment the customers into distinct groups based on their purchasing behavior. Each data point represents a customer and includes features like “Total Amount Spent” and “Number of Items Purchased.” Which algorithm is suitable for this scenario?
You’re building a machine learning pipeline to preprocess data and train a model on a classification task. You decide to use a pipeline that includes data preprocessing and a support vector machine (SVM) classifier. The following code snippet demonstrates the pipeline creation and usage:
You’re building a machine learning pipeline to preprocess data and train a model on a classification task. You decide to use a pipeline that includes data preprocessing and a support vector machine (SVM) classifier. The following code snippet demonstrates the pipeline creation and usage: What is the purpose of using the pipeline in this code snippet?
The pipeline combines multiple models for better model performance.
The pipeline allows for simultaneous training of the scaler and classifier.
The pipeline simplifies the code by encapsulating preprocessing and modelingsteps.
The pipeline ensures that only linear SVM can be used for this classificationtask.
When using a Support Vector Classifier (SVC) in scikit-learn with different values of the regularization parameter (C), how does the complexity of the decision boundary change? Select all correct statements:
Smaller values of C result in a more complex decision boundary.
Larger values of C result in a more complex decision boundary.
The decision boundary becomes simpler with increasing values of C.
Consider the following scatter plots of four different input datasets:
Consider the following scatter plots of four different input datasets: Which data will be classified better using gaussian rbf kernel?
What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy]
What is the correct output of the following block of code? [Note: LinearSVC implements “one-vs-the-rest” multi-class strategy]