iv class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="route_to_metric" class="doc_header"><code>route_to_metric</code><a href="https://github.com/bdsaglam/fastmtl/tree/master/fastmtl/metric.py#L49" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>route_to_metric</code>(<strong><code>metric</code></strong>, <strong><code>pred_idx</code></strong>, <strong><code>target_idx</code></strong>)</p>
</blockquote>
<p>Routes model output at <code>pre