n class='fu'>metrics_f1score</span>(
  <span class='no'>num_classes</span>,
  <span class='kw'>average</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
  <span class='kw'>threshold</span> <span class='kw'>=</span> <span class='kw'>NULL</span>,
  <span class='kw'>name</span> <span class='kw'>=</span> <span class='st'>"f1_score"</span>,
  <span class='kw'>dtype</span> <span class='kw'>=</span> <span class='no'>tf</span>$<span class='no'>float32</span>
)</pre>

    <h2 class="hasAnchor" id="argum