Description Usage Arguments Value Note See Also Examples
View source: R/Error_metrics_aggregate.R
Assess the performance of algorithms
1 2 3 | cal.metrics(x, y, name = "all", log10 = FALSE, c.value = mean(x, na.rm = TRUE))
cal.metrics.names()
|
x |
True value OR Actual value |
y |
Estimated value OR Predict value |
name |
The name of metrics |
log10 |
Logical. Whether the input x and y should be log10-transformed |
c.value |
Compensated value for CMAPE and CMRPE. Default is the mean of x. |
Result of cal.metrics
is a list of selected metric values.
The call of cal.metrics.names
returns the metrics names in cal.metrics
(2020-02-09) All functions used log10 transformation was assigned to the Key parameter 'log10'.
Other Utils:
SRF_simulate()
,
cal.metrics.vector()
,
level_to_variable()
,
trim_sd()
1 2 3 4 | x = runif(20)
y = runif(20)
result = cal.metrics(x, y)
str(result)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.