[508d22]: / inst / kernel_regression_cvscore.m  Maximize  Restore  History

Download this file

6 lines (4 with data), 182 Bytes

1
2
3
4
function cvscore = kernel_regression_cvscore(bandwidth, data, depvar)
fit = kernel_regression(data, depvar, data, exp(bandwidth), true);
cvscore = norm(depvar - fit);
endfunction