regression icon indicating copy to clipboard operation
regression copied to clipboard

Ridge and error

Open lpatiny opened this issue 9 years ago • 1 comments

Would be nice that in the model you directly return as well the error

Which error should be calculated ? Currently in the iamage project there is this:

var Y = predict(Xs, model);
var err = 0;
for (let i = 0; i < Xs.length; i++) {
    err += Math.abs(Y[i][0] - Ys[i][0]);
}

lpatiny avatar Oct 24 '15 16:10 lpatiny

It has to be the Root Mean Squared Error. It is the function minimised by the method.

andcastillo avatar Oct 24 '15 17:10 andcastillo