Description Usage Arguments Value Author(s) See Also Examples
mtr_explained_variance
computes explained variance, also known as
explained variation, which is interpreted as the percentage of variation in
one numeric vector explained by another. The best possible score is 1.0,
lower values are worse.
1 | mtr_explained_variance(actual, predicted)
|
actual |
|
predicted |
|
A numeric scalar output
An Chu
1 2 3 4 5 6 7 | act <- c(3, -0.5, 2, 7)
pred <- c(2.5, 0.0, 2, 8)
mtr_explained_variance(act, pred)
act <- c(1.1, 1.9, 3.0, 4.4, 5.0, 5.6)
pred <- c(0.9, 1.8, 2.5, 4.5, 5.0, 6.2)
mtr_explained_variance(act, pred)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.