powered by
Evaluation predictions of a regression model according to MSEP
evaluation.msep(predictions, targets)
The evaluation of the predictions (numeric value).
The predictions of a regression model (vector).
vector
Actual targets of the dataset (vector).
evaluation.r2, evaluation
evaluation.r2
evaluation
require (datasets) data (trees) d = splitdata (trees, 3) model.lin = LINREG (d$train.x, d$train.y) pred.lin = predict (model.lin, d$test.x) evaluation.msep (pred.lin, d$test.y)
Run the code above in your browser using DataLab