gistlib
other matlab categories
empirical loss code snippets in matlab
design the function function loss = loss_func(t_hat, t) that computes the empirical loss f binary predictions t_hat in matlab
design the function function out = mse_loss(x, y) that computes the empirical mse loss of prediction x using the true labels y, both vectors of the same length. in matlab
gistlib
by LogSnag