Learn R Programming

fdm2id (version 0.9.9)

plotavsp: Plot actual vs. predictions

Description

Plot actual vs. predictions of a regression model.

Usage

plotavsp(predictions, gt)

Arguments

predictions

The predictions of a classification model (vector).

gt

The ground truth of the dataset (vector).

See Also

confusion, evaluation.accuracy, evaluation.fmeasure, evaluation.fowlkesmallows, evaluation.goodness, evaluation.jaccard, evaluation.kappa, evaluation.precision, evaluation.recall, evaluation.msep, evaluation.r2, performance

Examples

Run this code
require (datasets)
data (trees)
model = LINREG (trees [, -3], trees [, 3])
pred = predict (model, trees [, -3])
plotavsp (pred, trees [, 3])

Run the code above in your browser using DataLab