Commit 8baaa2f5 authored by fbourgin's avatar fbourgin
Browse files

wip - debug

parent fa36d5c0
1 merge request!9Resolve "evaluation of quantiles prediction"
Pipeline #63449 failed with stage
in 3 minutes and 38 seconds
Showing with 3 additions and 1 deletion
+3 -1
...@@ -69,7 +69,9 @@ namespace evalhyd ...@@ -69,7 +69,9 @@ namespace evalhyd
auto a = xt::broadcast(xt::view(quantiles, i), std::vector<std::size_t>({q_lvl.size(), 2})); auto a = xt::broadcast(xt::view(quantiles, i), std::vector<std::size_t>({q_lvl.size(), 2}));
auto b = xt::broadcast(q_lvl, std::vector<std::size_t>({2, q_lvl.size()})); auto b = xt::broadcast(q_lvl, std::vector<std::size_t>({2, q_lvl.size()}));
auto res = xt::where(xt::equal(a, xt::transpose(b))); auto res = xt::where(xt::equal(a, xt::transpose(b)));
std::cout << "res: " << res << std::endl; std::cout << "res: " << res.size() << std::endl;
std::cout << "res: " << res[0][1] << std::endl;
std::cout << "res: " << res[1][1] << std::endl;
if (res.size() != 2) if (res.size() != 2)
{ {
throw std::runtime_error( throw std::runtime_error(
......
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