Commit aca6def8 authored by fbourgin's avatar fbourgin
Browse files

add a test for q_lvl

parent dd500e7d
1 merge request!4Resolve "evaluation of quantiles prediction"
Pipeline #63740 failed with stage
in 4 minutes and 24 seconds
Showing with 1 addition and 1 deletion
+1 -1
...@@ -163,7 +163,7 @@ class TestMetrics(unittest.TestCase): ...@@ -163,7 +163,7 @@ class TestMetrics(unittest.TestCase):
def test_intervals_qlvl_metrics(self): def test_intervals_qlvl_metrics(self):
lvl = numpy.array([50., 80.]) lvl = numpy.array([50., 80.])
qlvl = numpy.array([10., 25., 75., 90]) qlvl = numpy.array([10., 25., 75., 90])
for metric in 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, [metric], c_lvl=lvl, q_lvl=qlvl)[0][0, 0, 0]
......
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