Consider the Ridge LRR is being used to learn prediction function ypred=wT x where w,x ∈ R2 & mean absolute error (MAE) is used to measure the prediction error. A weight of 0.20 is associated with the regularizer. At an intermediate step of training process assume that the parameter w = [-3.00,4.00]T . In the next step for the I/P x=[1.00,2.00]T , the predicted value of y is noted. Let the relation b/w x=[x1,x2] T & the true value of y be ytrue = x1+x2. The value of the overall regularized loss for instance is _____(upto 2 decimal).
Correct Answer :
Solution :
The correct answer is 7.00.
To find the overall regularized loss, we need to calculate the prediction error (using Mean Absolute Error, or MAE) and add the regularized penalty (L2 or Ridge regularization).
Step 1: Calculate the predicted value of y
The prediction function is given by:
Given the parameter vector:
and the input vector:
We compute the dot product:
Step 2: Calculate the true value of y
The relationship for the true value is:
Using the components of the input vector where and :
Step 3: Calculate the Prediction Error (MAE)
The absolute error for this instance is:
Substituting the values:
Step 4: Calculate the Regularization Term
Ridge regression utilizes L2 regularization, where the penalty is the squared L2 norm of the parameter vector:
Substituting the weights:
Step 5: Calculate the Overall Regularized Loss
The overall regularized loss is the sum of the MAE loss and the weighted regularization term:
Given the regularization weight :
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.