eval_stats: Calculate regression evaluation metrics

Description Usage Arguments Value Author(s)

View source: R/eval_framework.R

Description

Calculate regression metrics for imbalanced domains.

Usage

1
2
3
4
5
6
7
8
9
eval_stats(
  trues,
  preds,
  y_train = NULL,
  thr = 0.9,
  beta = 1,
  rel = "auto",
  cf = 1.5
)

Arguments

trues

a vector of true values

preds

a vector of predicted values

y_train

a vector of training values

thr

relevance threshold

beta

beta in F-measure

rel

The relevance function which can be automatically ("auto") determined (the default) or may be provided by the user through a matrix with interpolating points.

cf

phi.control coef (needed if rel = 'auto')

Value

a named vector of metrics RMSE, relevance-aware RMSE, and utility-based precision, recall and F-measure

Author(s)

Nuno Moniz


mrfoliveira/STResampling-JDSA2020 documentation built on June 28, 2021, 7:01 p.m.