You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="sig-name descname"><spanclass="pre">adapt</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">alpha</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.0</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/MCintegration/maps.html#Vegas.adapt"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#MCintegration.maps.Vegas.adapt" title="Link to this definition">¶</a></dt>
236
-
<dd><p>Adapt grid to accumulated training data.</p>
237
-
<p><codeclass="docutils literal notranslate"><spanclass="pre">self.adapt(...)</span></code> projects the training data onto
238
-
each axis independently and maps it into <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code> space.
239
-
It shrinks <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code>-grid increments in regions where the
240
-
projected training data is large, and grows increments
241
-
where the projected data is small. The grid along
242
-
any direction is unchanged if the training data
243
-
is constant along that direction.</p>
244
-
<p>The number of increments along a direction can be
245
-
changed by setting parameter <codeclass="docutils literal notranslate"><spanclass="pre">ninc</span></code> (array or number).</p>
246
-
<p>The grid does not change if no training data has
247
-
been accumulated, unless <codeclass="docutils literal notranslate"><spanclass="pre">ninc</span></code> is specified, in
248
-
which case the number of increments is adjusted
249
-
while preserving the relative density of increments
250
-
at different values of <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code>.</p>
235
+
<spanclass="sig-name descname"><spanclass="pre">adapt</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">alpha</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.5</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/MCintegration/maps.html#Vegas.adapt"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#MCintegration.maps.Vegas.adapt" title="Link to this definition">¶</a></dt>
236
+
<dd><p>Adapt the grid based on accumulated training data.</p>
237
+
<p>Shrinks grid increments in regions where the accumulated f is large,
238
+
and grows them where f is small. The adaptation speed is controlled by alpha.</p>
<spanclass="sig-name descname"><spanclass="pre">add_training_data</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/MCintegration/maps.html#Vegas.add_training_data"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#MCintegration.maps.Vegas.add_training_data" title="Link to this definition">¶</a></dt>
@@ -310,7 +312,20 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Link to this headi
<spanclass="sig-name descname"><spanclass="pre">inverse</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">x</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/MCintegration/maps.html#Vegas.inverse"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#MCintegration.maps.Vegas.inverse" title="Link to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">make_uniform</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/MCintegration/maps.html#Vegas.make_uniform"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#MCintegration.maps.Vegas.make_uniform" title="Link to this definition">¶</a></dt>
0 commit comments