mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-17 08:40:56 +00:00
added test case for valid_metrics
This commit is contained in:
parent
5b58ad13cb
commit
bbadf65e3b
1 changed files with 5 additions and 0 deletions
|
|
@ -129,6 +129,11 @@ test_that("performance_metrics", {
|
||||||
))
|
))
|
||||||
df_horizon <- performance_metrics(df_cv, metrics = c('mape'))
|
df_horizon <- performance_metrics(df_cv, metrics = c('mape'))
|
||||||
expect_null(df_horizon)
|
expect_null(df_horizon)
|
||||||
|
# List of metrics containing non valid metrics
|
||||||
|
expect_error(
|
||||||
|
performance_metrics(df, metrics = c('mse', 'error_metric')),
|
||||||
|
'Valid values for metrics are: mse, rmse, mae, mape, coverage'
|
||||||
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
test_that("rolling_mean", {
|
test_that("rolling_mean", {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue