test scaling

This commit is contained in:
wassname
2017-11-14 12:08:10 +08:00
parent 05c9ba2271
commit 9ea8f0d570
+3
View File
@@ -34,6 +34,9 @@ def test_src_outputs(spec_id):
raise AssertionError(
"These should not be equal, or we are giving future prices to the model")
# also make sure that the last price X, is 1 because we scaled it by itself as in eq 18
assert (X0[:, -1, 0] == 1).all()
@pytest.mark.parametrize("spec_id", env_specs)
def test_gym_env(spec_id):