Recent questions and answers in Machine Learning

0 0 votes
1 1 answer
220
220 views
Using monthly stock averages, $x_1, x_2, \ldots x_n$, you run linear regression without regularization to estimate some future stock value $y$. However, your test error r...
0 0 votes
1 1 answer
135
135 views
Consider the contour map shown below.If a person were walking straight from point $A$ to point $B$, would s/he be walking uphill or downhill? Is the slope steeper at poin...
0 0 votes
1 1 answer
138
138 views
Consider the convex function $f(z) = z^2$ . Let $\alpha$ be our learning rate in gradient descent. For which values of $\alpha$ will $lim_{t \rightarrow \infty} f(z^{(t)}...
0 0 votes
1 1 answer
158
158 views
If the step size is dynamic, $\eta = \frac{1}{t}$, and $w^{(1)} = 0$, find the expression for $w^{(t)}$ after $t$ steps of SGD.$w^{(t)}= \frac{1}{n} \sum_{i=1}^n \frac{1}...
0 0 votes
1 1 answer
128
128 views
Which of the following is true, given the optimal learning rate?Batch gradient descent is always guaranteed to converge to the global optimum of a loss function.Stochasti...
0 0 votes
1 1 answer
137
137 views
Good practices to avoid overfitting include:  Using a two part cost function which includes a regularizer to penalize model complexity.Using a good optimizer to minimize ...
0 0 votes
1 1 answer
188
188 views
Consider the least squares regression model, $\hat{\mathbb{Y}}=\mathbb{X} \theta$. Assume that $\mathbb{X}$ and $\mathbb{Y}$ refer to the design matrix and true response ...
0 0 votes
1 1 answer
137
137 views
Consider the least squares regression model, $\hat{\mathbb{Y}}=\mathbb{X} \theta$. Assume that $\mathbb{X}$ and $\mathbb{Y}$ refer to the design matrix and true response ...
0 0 votes
1 1 answer
138
138 views
In a LASSO Regression, if the regularization parameter $\lambda$ is very high, which of the following is true? The model can shrink the coefficients of uninformative feat...
0 0 votes
1 1 answer
166
166 views
Consider the dataset with six datapoints: $\{(x_1, y_1), (x_2, y_2),.., (x_6,y_6)\}$ where $x_1 = \begin{bmatrix}1 \\ 0\end{bmatrix}, x_2 = \begin{bmatrix}0 \\ 1\end{bmat...
0 0 votes
1 1 answer
181
181 views
In the context of Slack Soft Margin SVM (Support Vector Machine), which of the following expressions can describe the slack variable $\xi^{(i)}$? $ \xi^{(i)} = \begin{ca...
0 0 votes
2 2 answers
212
212 views
What is the value of $\alpha_n$ for the circled data point ? $\alpha_n=0$$\alpha_n=C$$0<\alpha_n<C$Can be anything i.e. $0 \leq \alpha_n \leq C$
0 0 votes
1 1 answer
170
170 views
Suppose we have a training dataset of 90 points, and a test set of 30 points, and want to know which $\lambda$ value is best for a ridge regression model. Our candidate h...
0 0 votes
2 2 answers
240
240 views
$\text { Suppose you have this data set with one real-valued input and one real-valued output. }$I.What is the mean squared leave one out cross validation error of using ...
0 0 votes
1 1 answer
158
158 views
Peanut wants to train a model to accurately classify different types of animals from images. After training and testing his model, he observes that the model has high tra...
0 0 votes
1 1 answer
134
134 views
Parth now decides to use only the two most important features, $X_1$ , and $X_2$, in the dataset to predict weekly watch time. Given below is the scatterplot of the two f...
0 0 votes
1 1 answer
159
159 views
Suppose we are given three datasets $A, B$, and $C \in \mathbb{R}^{100 \times 2}$ i.e. each dataset consists of 100 data points in two dimensions. We visualize the datase...
0 0 votes
1 1 answer
199
199 views
Answer the same questions for the following dataset:$$\begin{bmatrix} 1 & 1 \\ 1.5 & 1.5 \\ -2 & 2 \\ 4 & -4 \\ 6 & -6 \\ 2 & 2 \end{bmatrix}$$What are the first $v_1$ a...
0 0 votes
1 1 answer
242
242 views
Which of the options are correct, select all that apply?You are solving a binary classification task, and the final two layers in your network are a ReLU activation follo...
0 0 votes
1 1 answer
260
260 views
Which of the options are correct, select all that apply ?Maximum value of local gradient when sigmoid is used as an activation function is 0.5.Minimum value of local grad...
0 0 votes
1 1 answer
286
286 views
Which of the following algorithms is used for Reinforcement learning?Naive BayesPrincipal Component AnalysisFast Forest QuantileQ-learning
1 1 vote
1 1 answer
224
224 views
Kevin is trying to fit a simple linear regression model $\hat{y}=\theta_0+\theta_1 x$ on a dataset with 900 observations.After determining $\hat{\theta_0}$ and $\hat{\the...
0 0 votes
1 1 answer
217
217 views
Consider the following two regularized linear regression objectives:$$L_1(w)=\sum_{i=1}^{n}(y_i-w^T x_i)^2+\lambda\sum_{j=1}^{8}w^2_j$$$$L_2(w)=\sum_{i=1}^{n}(y_i-w^T x_i...
1 1 vote
1 1 answer
250
250 views
Consider just the general shape of the following plots.For each of the following possible interpretations of the quantities being plotted on the $X$ and $Y$ axes, indicat...
1 1 vote
1 1 answer
107
107 views
Consider the following two statements S1 and S2 about linear separability.$S1 :$ If we take any data set that is not linearly separable and remove a feature, it is still ...
0 0 votes
1 1 answer
93
93 views
Suppose a linear regression model is trained using$$X \in \mathbb{R}^{N \times d}, \quad t \in \mathbb{R}^{N} .$$Now the dataset is duplicated to form$$X^{\prime}=\left[\...
0 0 votes
1 1 answer
89
89 views
In logistic regression, we predict Class 1 when$$\sigma\left(\mathbf{w}^{T} \mathbf{x}+b\right)>0.5$$What is the equation of the decision boundary?A. $\mathbf{w}^{T} \mat...
0 0 votes
0 0 answers
90
90 views
Consider the following dataset for a binary classification problem, where $+$ denotes the positive class and $-$ denotes the negative class.$$\begin{array}{|c|c|c|}\hline...
0 0 votes
0 0 answers
69
69 views
Given $n$ linearly independent feature vectors in $n$ dimensions, each assigned a label from $\{-1,+1\}$, consider a linear classifier of the form $\operatorname{sign}(w\...
0 0 votes
0 0 answers
80
80 views
Consider a regression model $h(x)=2x$ with the following loss function:$$L_{\mathrm{OINK}}(\hat{y},y)=\begin{cases}a(\hat{y}-y), & \hat{y}\geq y,\\b(y-\hat{y}), & \hat{y}...
1 1 vote
0 0 answers
71
71 views
Consider the following regularized linear regression objective function:$$L(w,b)=\sum_{i=1}^{n}(y_i-w^T x_i-b)^2+\lambda w^T D w$$where $D$ is a fixed diagonal matrix cho...
0 0 votes
0 0 answers
60
60 views
Which of the following statements about $L_1$ and $L_2$ regularization in linear regression are correct?$L1$ regularization tends to produce sparser weight vectors than $...
0 0 votes
0 0 answers
64
64 views
Consider a binary logistic regression model with labels $Y \in \{0,1\}$. Suppose the class probabilities are obtained from the softmax function using weight vectors $w_0$...
0 0 votes
0 0 answers
83
83 views
For a hard-margin SVM, the margin is inversely related to $\|w\|$. Suppose two SVM solutions have weight vectors $w_1$ and $w_2$, where$$\left\|w_1\right\|<\left\|w_2\rig...
0 0 votes
0 0 answers
64
64 views
Consider a least-squares linear regression problem with $X \in \mathbb{R}^{n \times d}$ and $y \in \mathbb{R}^n$. If the least-squares solution is unique, which of the fo...
0 0 votes
0 0 answers
63
63 views
Suppose a soft-margin SVM is used for a binary classification problem with labels $y_i \in\{-1,+1\}$. Let $\xi_i$ be the slack variable for training point $i$.If an error...
0 0 votes
0 0 answers
59
59 views
Let $f: \mathbb{R}^d \rightarrow \mathbb{R}$ be a differentiable function. At a point $x$, in which direction does the gradient $\nabla f(x)$ point?Direction of steepest ...
0 0 votes
0 0 answers
62
62 views
In linear regression, the least-squares prediction is given by$$\hat{y}=X\left(X^T X\right)^{-1} X^T y .$$What does this expression represent geometrically?The projection...
To see more, click for all the questions in this category.