main.m678 chars24 lines
This function takes in the training and testing datasets x_tr
, t_tr
, x_te
, and t_te
, and returns the empirical mse test loss column vector out
for different values of m
. It computes the weight matrix using the training dataset for different values of m
and then uses it to make predictions on the testing dataset. It then calculates the MSE loss between the predicted values and ground truth values and stores it in out
for later analysis.
gistlibby LogSnag