2">"l3 regularization"</span><span class="p">]</span> <span class="o">=</span> <span class="n">loss</span> <span class="o">/</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">num_entity</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">num_relation</span><span class="p">)</span>

        <span class="k">return</span> <span class="n">score</span></div></div>


<div class="viewcode-block" id="ComplEx"><a class="