Skip to content

Commit

Permalink
Tets rejigged to match same library versions #230
Browse files Browse the repository at this point in the history
  • Loading branch information
IanGrimstead authored and IanGrimstead committed Apr 5, 2019
1 parent e534bdf commit cad6468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/algorithms/test_arima.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def test_linear_sequence(self):
def test_flakey_sequence(self):
time_series = [1.0, -2.0, 3.0, -4.0, 5.0]
num_predicted_periods = 3
expected_prediction = [np.nan, np.nan, np.nan]
expected_prediction = [0, 4.8, np.nan]
arima = ARIMAForecast(time_series, num_predicted_periods)

actual_prediction = arima.predict_counts()

np_test.assert_almost_equal(actual_prediction, expected_prediction, decimal=4)
np_test.assert_almost_equal(actual_prediction, expected_prediction, decimal=1)

def test_linearly_increasing_sequence_fuel_cell(self):
time_series = pd.read_csv(os.path.join('tests','data', 'fuel_cell_quarterly.csv')).values.tolist()
Expand Down

0 comments on commit cad6468

Please sign in to comment.