Home / Past papers / MLP Quiz 1 / this paper

Which of the following options represent the possible type of machine learning algorithm does the cluster plot shown in Figure 2 demonstrate?
What will be the output of the following code? 







Go through the code snippet given below: What will be the shape of the feature matrix (X.shape) and the label vector (y.shape)?
Which of the following options is likely to be the correct output of the code snippet given below? 



Consider the following code snippet: Above code returns (178, 13) as output. Which of the following would be the correct code(s) to split X and y such that you have exactly 36 samples for test data?



In the figure 1, what are the names of classes arranged in the decreasing order of the median values?
Which of the following is likely to be the correct output of the code given below?
Which of the following is likely to be the correct output of the code given below? 



Consider the following code snippet: Which of the following could be the correct output?



Which of the following options will be the correct output of print(clf.coef_)?
Go through the code snippet given below and mark the correct output.
Go through the code snippet given below and mark the correct output.
Which of the following is likely to be the correct output of the code given below? 







Go through the code snippet given below and answer the following questions. Which of the following could be the possible output of print(results.alpha_)?
Enter the correct output of the following code block.
Go through the code snippet given below and answer the given subquestions. Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
Supervised vs. Unsupervised Learning
Clustering Algorithms
Regression Algorithms
Linear Regression: Models the relationship between a dependent variable and one or more independent variables.
Logistic Regression: Used for binary classification.
Dimensionality Reduction
Principal Component Analysis (PCA): Reduces the dimensionality of data while preserving variance.
Model Evaluation Metrics
Mean Squared Error (MSE): Measures the average squared difference between predicted and actual values.
R-squared (R²): Measures the proportion of variance in the dependent variable that is predictable from the independent variables.
Data Preprocessing
Scaling: Standardizing or normalizing features.
Imputation: Handling missing data.
Polynomial Features
PolynomialFeatures: Generates polynomial and interaction features.
Cross-Validation
Regularization
Ridge Regression: Adds L2 regularization to linear regression.
Lasso Regression: Adds L1 regularization to linear regression.
Stochastic Gradient Descent (SGD)
SGDRegressor: Uses stochastic gradient descent to fit linear models.
Scikit-Learn API
Pipeline: Combines multiple steps into a single object.
Pipeline([("poly", PolynomialFeatures(degree=2)), ("feature_scaling", MinMaxScaler())])Data Splitting
train_test_split: Splits data into training and testing sets.
train_test_split(X, y, test_size=0.2, random_state=42)One-Hot Encoding
OneHotEncoder: Converts categorical features into a one-hot encoded format.
OneHotEncoder(handle_unknown='ignore')Linear Algebra
Probability and Statistics