radient</span>
        <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">validation_dataset</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
            <span class="n">target_gradient</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_grad_embedding</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">