116 views
0 0 votes
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 hyperparameters are $\lambda=0.1, \lambda=1$, and $\lambda=10$.
Suppose we select the best choice of $\lambda$ from the three choices available using 3-fold cross validation. As mentioned in class, we can compute the optimal parameters for a ridge regression model with the expression $\vec{\beta}=\left(\mathbb{X}^T \mathbb{X}+n \lambda I\right)^{-1} \mathbb{X}^T \vec{y}$. Assume that we use this closed equation to fit the parameters for our model.

$(I)$ During the entire process of selecting our best $\lambda$, how many total times will we evaluate the expression $\left(\mathbb{X}^T \mathbb{X}+n \lambda I\right)^{-1} \mathbb{X}^T \vec{y}$ ?

$(II)$ How many rows will be in  X each time this expression is evaluated?

Which of the following is correct for $(I)$ and $(II)$ respectively ?

A. $9 , 60$

B. $6, 50$

C. $6, 60$

D. $9, 6$
 

Please log in or register to answer this question.

Answer:
Position:
Show:

Related questions

0 0 votes
0 0 answers
271
271 views
GO Classes asked Mar 21, 2025
271 views
Consider a scenario where we use leave-one-out cross-validation (LOOCV) with Support Vector Machines (SVM) for binary classification. Given a dataset $\mathcal{D}=$ $\lef...
1 1 vote
2 2 answers
517
517 views
GO Classes asked Mar 21, 2025
517 views
Given the 2D dataset, which of the following is true regarding the performance of 1-nearest neighbor (1-NN) and Support Vector Machines (SVM) in terms of leave-one-out cr...
0 0 votes
0 0 answers
154
154 views
GO Classes asked Mar 21, 2025
154 views
Given the 2D dataset, which of the following is true regarding the performance of 1-nearest neighbor (1-NN) and Support Vector Machines (SVM) in terms of leave-one-out cr...
0 0 votes
1 1 answer
206
206 views
GO Classes asked Mar 21, 2025
206 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 ...