Skip to content

Commit

Permalink
Pre-commit formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mloning committed Oct 12, 2020
1 parent f08770e commit 7d7008a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sktime/performance_metrics/forecasting/_functions.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3 -u
# coding: utf-8
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)

import numpy as np
Expand Down Expand Up @@ -54,8 +54,10 @@ def mase_loss(y_test, y_pred, y_train, sp=1):
if y_train is not None:
check_time_index(y_train.index)
if y_train.index.max() >= y_test.index.min():
raise ValueError("Found `y_train` with time index which is not "
"before time index of `y_test`")
raise ValueError(
"Found `y_train` with time index which is not "
"before time index of `y_test`"
)

#  naive seasonal prediction
y_train = np.asarray(y_train)
Expand Down

0 comments on commit 7d7008a

Please sign in to comment.