.window_diff-18"><a href="#Sublosses.window_diff-18"><span class="linenos">18</span></a><span class="sd">    :param b: Reference segmentation.</span>
</span><span id="Sublosses.window_diff-19"><a href="#Sublosses.window_diff-19"><span class="linenos">19</span></a><span class="sd">    :param th: Segmentation threshold.</span>
</span><span id="Sublosses.window_diff-20"><a href="#Sublosses.window_diff-20"><span class="linenos">20</span></a><span class="sd">    :return: WindowDiff metric.</span>
</span><span id