mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-14 20:48:08 +00:00
Add test for cross validation with invalid metrics
This commit is contained in:
parent
64d54e7748
commit
71ca505732
1 changed files with 5 additions and 0 deletions
|
|
@ -164,6 +164,11 @@ class TestDiagnostics(TestCase):
|
|||
df_cv, metrics=['mape'],
|
||||
)
|
||||
self.assertIsNone(df_horizon)
|
||||
# List of metrics containing non-valid metrics
|
||||
with self.assertRaises(ValueError):
|
||||
diagnostics.performance_metrics(
|
||||
df_cv, metrics=['mse', 'error_metric'],
|
||||
)
|
||||
|
||||
def test_rolling_mean(self):
|
||||
x = np.arange(10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue