ordinal_score: Ordinal scoring function

Description Usage Arguments Value

View source: R/model.R

Description

  1. compute the mae between true and predicted values

  2. divide it by 5, the maximum value taken by the variable

  3. subtract it to 1 so higher is better, as for the accuracy score

Usage

1
ordinal_score(y_true, y_pred)

Arguments

y_true

vector.

y_pred

vector.

Value

numeric. ordinal score


vadmbertr/bonski.predict documentation built on Dec. 23, 2021, 2:06 p.m.