cal.metrics: Assess the performance of algorithms

Description Usage Arguments Value Note See Also Examples

View source: R/Error_metrics_aggregate.R

Description

Assess the performance of algorithms

Usage

1
2
3
cal.metrics(x, y, name = "all", log10 = FALSE, c.value = mean(x, na.rm = TRUE))

cal.metrics.names()

Arguments

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.

Value

Result of cal.metrics is a list of selected metric values.

The call of cal.metrics.names returns the metrics names in cal.metrics

Note

(2020-02-09) All functions used log10 transformation was assigned to the Key parameter 'log10'.

See Also

Other Utils: SRF_simulate(), cal.metrics.vector(), level_to_variable(), trim_sd()

Examples

1
2
3
4
x = runif(20)
y = runif(20)
result = cal.metrics(x, y)
str(result)

bishun945/FCMm documentation built on Oct. 15, 2021, 6:43 p.m.