mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-17 21:10:45 +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'))
|
||||
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", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue