regression
regression copied to clipboard
Ridge and error
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]);
}
It has to be the Root Mean Squared Error. It is the function minimised by the method.