Commit ce69e412 authored by fbourgin's avatar fbourgin
Browse files

add a test for q_lvl

parent aca6def8
1 merge request!4Resolve "evaluation of quantiles prediction"
Pipeline #63741 failed with stage
in 4 minutes and 27 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -166,7 +166,7 @@ class TestMetrics(unittest.TestCase): ...@@ -166,7 +166,7 @@ class TestMetrics(unittest.TestCase):
for metric in self.expected_itv_qlvl.keys(): for metric in self.expected_itv_qlvl.keys():
numpy.set_printoptions(precision=13) numpy.set_printoptions(precision=13)
m = evalhyd.evalp(_obs, _prd, [metric], c_lvl=lvl, q_lvl=qlvl)[0][0, 0, 0] m = evalhyd.evalp(_obs, _prd[:, :, [0, 15, 30, 50], :], [metric], c_lvl=lvl, q_lvl=qlvl)[0][0, 0, 0]
numpy.savetxt(f"./expected/evalp/{metric}_QLVL.csv", m, delimiter=',', fmt="%.13f") numpy.savetxt(f"./expected/evalp/{metric}_QLVL.csv", m, delimiter=',', fmt="%.13f")
with self.subTest(metric=metric): with self.subTest(metric=metric):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment