Learn R Programming

fdm2id (version 0.9.5)

evaluation.msep: MSEP evaluation of regression predictions

Description

Evaluation predictions of a regression model according to MSEP

Usage

evaluation.msep(predictions, targets)

Arguments

predictions

The predictions of a regression model (vector).

targets

Actual targets of the dataset (vector).

Value

The evaluation of the predictions (numeric value).

See Also

evaluation.r2, evaluation

Examples

Run this code
# NOT RUN {
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