Recent questions tagged machine-learning

0 0 votes
0 0 answers
166
166 views
Which of the following statement(s) is(are) true for k-NN ?A. k represents the number of classes.B. The final outcome of the algorithm may change with the distance measur...
1 1 vote
1 1 answer
145
145 views
You are training a soft-margin SVM on a binary classification problem. You find that your model's training accuracy is very high, while your validation accuracy is very l...
0 0 votes
0 0 answers
124
124 views
Why is it important to use a different test set to evaluate the final performance of the model, rather than the validation set used during model selection?A. The model ma...
0 0 votes
0 0 answers
106
106 views
Aman and Ed built a model on their data with two regularization hyperparameters $\lambda$ and $\gamma$. They have 4 good candidate values for $\lambda$ and 3 possible val...
0 0 votes
0 0 answers
192
192 views
Consider a nearest neighbor classifier that chooses the label for a test point to be the label of its nearest neighboring training example. What is its leave-oneout cross...
0 0 votes
0 0 answers
117
117 views
Suppose we have a design matrix $\mathbb{X}$ comprising of $n$ observations, $d$ features, and an additional intercept term. We decide to use $\mathbb{X}$ to create, tune...
0 0 votes
0 0 answers
114
114 views
Random forest is created from a number of decision trees, with each decision tree created from a bootstrapped version of the original training set. One hyperparameter of ...
0 0 votes
0 0 answers
105
105 views
Leave-one-out cross-validation (LOOCV) is a special case of k -fold cross-validation where:The training set contains all but one sample, and the remaining sample is used ...
0 0 votes
0 0 answers
129
129 views
Assume we have a data matrix $X$. Which of the following is a true statement when comparing leave-one-out cross validation (LOOCV) error with the true error? LOOCV error ...
0 0 votes
0 0 answers
136
136 views
$k$-fold cross-validation with $k=100$ is computationally more expensive (slower) than "leave-one-out" cross validation. (Assume that there are enough data points to divi...
1 1 vote
0 0 answers
214
214 views
Suppose we use leave-one-out cross validation meaning we use 7 -fold cross validation with a split of 6 to 1 between training set and validating set. Compute the average ...
0 0 votes
0 0 answers
190
190 views
Suppose we have $m$ data points in our training set and $n$ data points in our test set. In leave-one-out cross validation, we only use one data point for validation whil...
0 0 votes
1 1 answer
131
131 views
Let's say we pick three hyperparameters to tune with cross-validation. We have 5 candidate values for hyperparameter 1,6 candidate values for hyperparameter 2 , and 7 can...
0 0 votes
1 1 answer
138
138 views
Suppose Jordan uses $k$-fold crossvalidation with $\alpha$ chosen from $0.1,0.2,0.4$ and $\mathcal{B}$ chosen from $32,64,128$. The average cross-validated loss is shown ...
0 0 votes
1 1 answer
174
174 views
Picking Hyperparameters: Connie is now using cross validation to pick a hyperparameter for her regularization term above. She provides you with the errors she has compute...
0 0 votes
1 1 answer
143
143 views
You train a linear classifier on 10,000 training points and discover that the training accuracy is only $67 \%$. Which of the following, done in isolation, has a good cha...
0 0 votes
1 1 answer
176
176 views
In n-fold cross-validation, each data point belongs to exactly one test fold, which makes the test folds independent. However, if the data in test folds $i$ and $j$ are i...
0 0 votes
1 1 answer
165
165 views
What are the advantages of $k$-fold cross validation relative to(A)$\text{ Validation set approach}$(B) $\text { Leave-one-out cross validation (LOOCV) }$ 
0 0 votes
1 1 answer
164
164 views
The model has a very high validation error. We should increase $\lambda$We should decrease $\lambda$The model has high biasNot enough information
0 0 votes
1 1 answer
155
155 views
Yash decides to use LASSO regression with the design matrix from part 3c(ii). He has 4 candidate values for the regularization parameter $\lambda$, and decides to use 5 -...
0 0 votes
1 1 answer
152
152 views
Ella wants to use gradient descent to determine the optimal parameter values for her regularized model. To do so, she needs to select a value for $\alpha$, the gradient d...
0 0 votes
1 1 answer
132
132 views
Ella wants to use gradient descent to determine the optimal parameter values for her regularized model. To do so, she needs to select a value for $\alpha$, the gradient d...
0 0 votes
1 1 answer
143
143 views
$\text { What is cross-validation not used for ? }$To evaluate the performance of a machine learning model on unseen data.To select a model's hyperparameters.To determine...
0 0 votes
1 1 answer
137
137 views
Jessica decides to use LASSO regression. If Jessica has 5 candidate values of regularizer parameter $\lambda$, how many validation errors will she calculate if she runs 4...
0 0 votes
1 1 answer
166
166 views
To choose the most optimal $\lambda$, Namjoon uses 5 -fold cross-validation to train 5 models and stores the appropriate root-mean square error for each fold and $\lambda...
0 0 votes
1 1 answer
115
115 views
It is important to frequently evaluate models on the test data throughout the process of model development ? .AlwaysNeverSometimesDepends on the problem 
0 0 votes
1 1 answer
128
128 views
Your friend needs help selecting between two linear regression models, desiring the one that generalizes best. Which model should they use ?Model 1 : Training MSE: 100, V...
0 0 votes
0 0 answers
106
106 views
To prevent overfitting of our linear model, we would apply regularization on the model. Which of the following datasets should we evaluate using our model in order to dec...
1 1 vote
1 1 answer
153
153 views
Imagine we are creating a model to predict Seattle air quality. In order to improve our model performance, we should create an validation dataset from test dataset for hy...