pan>
        <span class="c1"># P.T * C</span>
        <span class="c1"># P_ij = u_i * v_j * K_ij</span>
        <span class="n">pity</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">multiply</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">multiply</span><span class="p">(</span><span class="n">K</span><span class="p">,</span> <span class="n">u</span><span class="o">.</span><span class="n">reshape</span><span class