|
264 | 264 | <li class="toctree-l2"><a class="reference internal" href="../../scalarization/random/">Random</a></li> |
265 | 265 | <li class="toctree-l2"><a class="reference internal" href="../../scalarization/stch/">STCH</a></li> |
266 | 266 | <li class="toctree-l2"><a class="reference internal" href="../../scalarization/sum/">Sum</a></li> |
| 267 | +<li class="toctree-l2"><a class="reference internal" href="../../scalarization/uw/">UW</a></li> |
267 | 268 | </ul> |
268 | 269 | </li> |
269 | 270 | <li class="toctree-l1 has-children"><a class="reference internal" href="../../linalg/">linalg</a><input aria-label="Toggle navigation of linalg" class="toctree-checkbox" id="toctree-checkbox-6" name="toctree-checkbox-6" role="switch" type="checkbox"/><label for="toctree-checkbox-6"><span class="icon"><svg><use href="#svg-arrow-right"></use></svg></span></label><ul> |
@@ -315,7 +316,7 @@ <h1>CR-MOGM<a class="headerlink" href="#cr-mogm" title="Link to this heading">¶ |
315 | 316 | <dl class="py class"> |
316 | 317 | <dt class="sig sig-object py" id="torchjd.aggregation.CRMOGMWeighting"> |
317 | 318 | <span class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></span><span class="sig-prename descclassname"><span class="pre">torchjd.aggregation.</span></span><span class="sig-name descname"><span class="pre">CRMOGMWeighting</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">weighting</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">0.9</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">initial_weights</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/aggregation/_cr_mogm.py#L14-L155"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#torchjd.aggregation.CRMOGMWeighting" title="Link to this definition">¶</a></dt> |
318 | | -<dd><p><a class="reference internal" href="../#torchjd.aggregation.Stateful" title="torchjd.aggregation._mixins.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a> |
| 319 | +<dd><p><a class="reference internal" href="../../stateful/#torchjd.Stateful" title="torchjd.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a> |
319 | 320 | <a class="reference internal" href="../#torchjd.aggregation.Weighting" title="torchjd.aggregation._weighting_bases.Weighting"><code class="xref py py-class docutils literal notranslate"><span class="pre">Weighting</span></code></a> that wraps another |
320 | 321 | <a class="reference internal" href="../#torchjd.aggregation.Weighting" title="torchjd.aggregation._weighting_bases.Weighting"><code class="xref py py-class docutils literal notranslate"><span class="pre">Weighting</span></code></a> and stabilises the weights it |
321 | 322 | produces with an exponential moving average (EMA) across calls. This is the weight-smoothing |
@@ -354,7 +355,7 @@ <h1>CR-MOGM<a class="headerlink" href="#cr-mogm" title="Link to this heading">¶ |
354 | 355 | themselves, so wrapping by <code class="docutils literal notranslate"><span class="pre">CRMOGMWeighting</span></code> will have no effect.</p> |
355 | 356 | <p>This weighting is stateful: it keeps <span class="math notranslate nohighlight">\(\lambda_{k-1}\)</span> across calls. Use <a class="reference internal" href="#torchjd.aggregation.CRMOGMWeighting.reset" title="torchjd.aggregation.CRMOGMWeighting.reset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">reset()</span></code></a> |
356 | 357 | to restart the smoothing from the initial state. Note that calling <a class="reference internal" href="#torchjd.aggregation.CRMOGMWeighting.reset" title="torchjd.aggregation.CRMOGMWeighting.reset"><code class="xref py py-meth docutils literal notranslate"><span class="pre">reset()</span></code></a> will also |
357 | | -reset the wrapped weighting if it is <a class="reference internal" href="../#torchjd.aggregation.Stateful" title="torchjd.aggregation.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a>.</p> |
| 358 | +reset the wrapped weighting if it is <a class="reference internal" href="../../stateful/#torchjd.Stateful" title="torchjd.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a>.</p> |
358 | 359 | <dl class="field-list simple"> |
359 | 360 | <dt class="field-odd">Parameters<span class="colon">:</span></dt> |
360 | 361 | <dd class="field-odd"><ul class="simple"> |
@@ -397,7 +398,7 @@ <h1>CR-MOGM<a class="headerlink" href="#cr-mogm" title="Link to this heading">¶ |
397 | 398 | <dt class="sig sig-object py" id="torchjd.aggregation.CRMOGMWeighting.reset"> |
398 | 399 | <span class="sig-name descname"><span class="pre">reset</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/aggregation/_cr_mogm.py#L120-L128"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#torchjd.aggregation.CRMOGMWeighting.reset" title="Link to this definition">¶</a></dt> |
399 | 400 | <dd><p>Clears the EMA state so the next forward restarts from the initial state. Also resets the |
400 | | -wrapped weighting if it is <a class="reference internal" href="../#torchjd.aggregation.Stateful" title="torchjd.aggregation._mixins.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a>.</p> |
| 401 | +wrapped weighting if it is <a class="reference internal" href="../../stateful/#torchjd.Stateful" title="torchjd.Stateful"><code class="xref py py-class docutils literal notranslate"><span class="pre">Stateful</span></code></a>.</p> |
401 | 402 | <dl class="field-list simple"> |
402 | 403 | <dt class="field-odd">Return type<span class="colon">:</span></dt> |
403 | 404 | <dd class="field-odd"><p><span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span></p> |
|
0 commit comments