Commit b56ac2a6 authored by fbourgin's avatar fbourgin
Browse files

wip - debug

1 merge request!9Draft: Resolve "evaluation of quantiles prediction"
Pipeline #63450 failed with stage
in 2 minutes and 14 seconds
Showing with 3 additions and 3 deletions
+3 -3
......@@ -67,11 +67,11 @@ namespace evalhyd
for (std::size_t i = 0; i < n_itv; i++)
{
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 / 100., std::vector<std::size_t>({2, q_lvl.size()}));
auto res = xt::where(xt::equal(a, xt::transpose(b)));
std::cout << "res: " << res.size() << std::endl;
std::cout << "res: " << res[0][1] << std::endl;
std::cout << "res: " << res[1][1] << std::endl;
std::cout << "res: " << res[0] << std::endl;
std::cout << "res: " << res[1] << std::endl;
if (res.size() != 2)
{
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