Skip to content

Commit c4cab88

Browse files
Update latest version of site
1 parent 8f83766 commit c4cab88

File tree

7 files changed

+45
-45
lines changed

7 files changed

+45
-45
lines changed

v/latest/api/exceptions.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
7777
<dd class="field-odd"><ul class="simple">
7878
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
79-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
79+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
8080
<li><p><strong>runtime</strong> (<em>float</em>) – The total runtime in seconds after which the optimization
8181
timed out.</p></li>
8282
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
@@ -96,7 +96,7 @@
9696
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
9797
<dd class="field-odd"><ul class="simple">
9898
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
99-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
99+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
100100
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
101101
</ul>
102102
</dd>

v/latest/api/exceptions/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
7777
<dd class="field-odd"><ul class="simple">
7878
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
79-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
79+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
8080
<li><p><strong>runtime</strong> (<em>float</em>) – The total runtime in seconds after which the optimization
8181
timed out.</p></li>
8282
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
@@ -96,7 +96,7 @@
9696
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
9797
<dd class="field-odd"><ul class="simple">
9898
<li><p><strong>*args</strong> (<em>Any</em>) – Standard args to <cite>BoTorchError</cite>.</p></li>
99-
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
99+
<li><p><strong>current_x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – A numpy array representing the current iterate.</p></li>
100100
<li><p><strong>**kwargs</strong> (<em>Any</em>) – Standard kwargs to <cite>BoTorchError</cite>.</p></li>
101101
</ul>
102102
</dd>

v/latest/api/optim.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ <h2>Optimization<a class="headerlink" href="#optimization" title="Link to this h
9797
<li><p><strong>parameters</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em>) – A dictionary of tensors to be optimized.</p></li>
9898
<li><p><strong>bounds</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>tuple</em><em>[</em><em>float</em><em> | </em><em>None</em><em>, </em><em>float</em><em> | </em><em>None</em><em>]</em><em>] </em><em>| </em><em>None</em>) – A dictionary mapping parameter names to lower and upper bounds.</p></li>
9999
<li><p><strong>callback</strong> (<em>Callable</em><em>[</em><em>[</em><em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em><em>, </em><a class="reference internal" href="#botorch.optim.core.OptimizationResult" title="botorch.optim.core.OptimizationResult"><em>OptimizationResult</em></a><em>]</em><em>, </em><em>None</em><em>] </em><em>| </em><em>None</em>) – A callable taking <cite>parameters</cite> and an OptimizationResult as arguments.</p></li>
100-
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>) – An optional initialization vector passed to scipy.optimize.minimize.</p></li>
100+
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>) – An optional initialization vector passed to scipy.optimize.minimize.</p></li>
101101
<li><p><strong>method</strong> (<em>str</em>) – Solver type, passed along to scipy.minimize.</p></li>
102102
<li><p><strong>options</strong> (<em>dict</em><em>[</em><em>str</em><em>, </em><em>Any</em><em>] </em><em>| </em><em>None</em>) – Dictionary of solver options, passed along to scipy.minimize.</p></li>
103103
<li><p><strong>timeout_sec</strong> (<em>float</em><em> | </em><em>None</em>) – Timeout in seconds to wait before aborting the optimization loop
@@ -1968,7 +1968,7 @@ <h3>Core<a class="headerlink" href="#id2" title="Link to this heading">¶</a></h
19681968
</dl>
19691969
<dl class="py property">
19701970
<dt class="sig sig-object py" id="botorch.optim.closures.core.NdarrayOptimizationClosure.state">
1971-
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">state</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">Any</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">_ScalarType_co</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#botorch.optim.closures.core.NdarrayOptimizationClosure.state" title="Link to this definition"></a></dt>
1971+
<em class="property"><span class="pre">property</span><span class="w"> </span></em><span class="sig-name descname"><span class="pre">state</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">ndarray</span><span class="p"><span class="pre">[</span></span><span class="pre">tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="p"><span class="pre">...</span></span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">dtype</span><span class="p"><span class="pre">[</span></span><span class="pre">_ScalarType_co</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></em><a class="headerlink" href="#botorch.optim.closures.core.NdarrayOptimizationClosure.state" title="Link to this definition"></a></dt>
19721972
<dd></dd></dl>
19731973
</dd></dl>
19741974
</section>
@@ -2271,7 +2271,7 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
22712271
<dd class="field-even"><p>An ndarray with the same data as <cite>values</cite>.</p>
22722272
</dd>
22732273
<dt class="field-odd">Return type<span class="colon">:</span></dt>
2274-
<dd class="field-odd"><p><em>ndarray</em>[<em>Any</em>, <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
2274+
<dd class="field-odd"><p><em>ndarray</em>[tuple[int, …], <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
22752275
</dd>
22762276
</dl>
22772277
</dd></dl>
@@ -2282,13 +2282,13 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
22822282
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
22832283
<dd class="field-odd"><ul class="simple">
22842284
<li><p><strong>tensors</strong> (<em>Iterator</em><em>[</em><em>Tensor</em><em>] </em><em>| </em><em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em>)</p></li>
2285-
<li><p><strong>out</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>)</p></li>
2285+
<li><p><strong>out</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>] </em><em>| </em><em>None</em>)</p></li>
22862286
<li><p><strong>dtype</strong> (<em>dtype</em><em> | </em><em>str</em><em> | </em><em>None</em>)</p></li>
2287-
<li><p><strong>as_array</strong> (<em>Callable</em><em>[</em><em>[</em><em>Tensor</em><em>]</em><em>, </em><em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em><em>]</em>)</p></li>
2287+
<li><p><strong>as_array</strong> (<em>Callable</em><em>[</em><em>[</em><em>Tensor</em><em>]</em><em>, </em><em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em><em>]</em>)</p></li>
22882288
</ul>
22892289
</dd>
22902290
<dt class="field-even">Return type<span class="colon">:</span></dt>
2291-
<dd class="field-even"><p><em>ndarray</em>[<em>Any</em>, <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
2291+
<dd class="field-even"><p><em>ndarray</em>[tuple[int, …], <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
22922292
</dd>
22932293
</dl>
22942294
</dd></dl>
@@ -2300,7 +2300,7 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
23002300
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
23012301
<dd class="field-odd"><ul class="simple">
23022302
<li><p><strong>tensors</strong> (<em>Iterator</em><em>[</em><em>Tensor</em><em>] </em><em>| </em><em>dict</em><em>[</em><em>str</em><em>, </em><em>Tensor</em><em>]</em>)</p></li>
2303-
<li><p><strong>array</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>)</p></li>
2303+
<li><p><strong>array</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>)</p></li>
23042304
</ul>
23052305
</dd>
23062306
<dt class="field-even">Return type<span class="colon">:</span></dt>
@@ -2323,7 +2323,7 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
23232323
<dd class="field-even"><p>An ndarray of bounds.</p>
23242324
</dd>
23252325
<dt class="field-odd">Return type<span class="colon">:</span></dt>
2326-
<dd class="field-odd"><p><em>ndarray</em>[<em>Any</em>, <em>dtype</em>[<em>_ScalarType_co</em>]] | None</p>
2326+
<dd class="field-odd"><p><em>ndarray</em>[tuple[int, …], <em>dtype</em>[<em>_ScalarType_co</em>]] | None</p>
23272327
</dd>
23282328
</dl>
23292329
</dd></dl>
@@ -2343,8 +2343,8 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
23432343
<dl class="field-list simple">
23442344
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
23452345
<dd class="field-odd"><ul class="simple">
2346-
<li><p><strong>fun</strong> (<em>Callable</em><em>[</em><em>[</em><em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em><em>, </em><em>...</em><em>]</em><em>, </em><em>float</em><em>]</em>)</p></li>
2347-
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>)</p></li>
2346+
<li><p><strong>fun</strong> (<em>Callable</em><em>[</em><em>[</em><em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em><em>, </em><em>...</em><em>]</em><em>, </em><em>float</em><em>]</em>)</p></li>
2347+
<li><p><strong>x0</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>)</p></li>
23482348
<li><p><strong>args</strong> (<em>tuple</em><em>[</em><em>Any</em><em>, </em><em>...</em><em>]</em>)</p></li>
23492349
<li><p><strong>method</strong> (<em>str</em><em> | </em><em>None</em>)</p></li>
23502350
<li><p><strong>jac</strong> (<em>str</em><em> | </em><em>Callable</em><em> | </em><em>bool</em><em> | </em><em>None</em>)</p></li>
@@ -2456,9 +2456,9 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
24562456
<dl class="field-list simple">
24572457
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
24582458
<dd class="field-odd"><ul class="simple">
2459-
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2459+
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
24602460
<li><p><strong>flat_idxr</strong> (<em>list</em><em>[</em><em>int</em><em>]</em>) – The indices in <cite>x</cite> to consider.</p></li>
2461-
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2461+
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
24622462
<li><p><strong>rhs</strong> (<em>float</em>) – The right-hand-side of the constraint.</p></li>
24632463
</ul>
24642464
</dd>
@@ -2477,17 +2477,17 @@ <h2>Utilities<a class="headerlink" href="#utilities" title="Link to this heading
24772477
<dl class="field-list simple">
24782478
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
24792479
<dd class="field-odd"><ul class="simple">
2480-
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
2480+
<li><p><strong>x</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The input array.</p></li>
24812481
<li><p><strong>flat_idxr</strong> (<em>list</em><em>[</em><em>int</em><em>]</em>) – The indices for the elements of x that appear in the constraint.</p></li>
2482-
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>Any</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
2482+
<li><p><strong>coeffs</strong> (<em>ndarray</em><em>[</em><em>tuple</em><em>[</em><em>int</em><em>, </em><em>...</em><em>]</em><em>, </em><em>dtype</em><em>[</em><em>_ScalarType_co</em><em>]</em><em>]</em>) – The coefficients corresponding to the indices.</p></li>
24832483
<li><p><strong>n</strong> (<em>int</em>) – number of elements</p></li>
24842484
</ul>
24852485
</dd>
24862486
<dt class="field-even">Returns<span class="colon">:</span></dt>
24872487
<dd class="field-even"><p>The Jacobian.</p>
24882488
</dd>
24892489
<dt class="field-odd">Return type<span class="colon">:</span></dt>
2490-
<dd class="field-odd"><p><em>ndarray</em>[<em>Any</em>, <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
2490+
<dd class="field-odd"><p><em>ndarray</em>[tuple[int, …], <em>dtype</em>[<em>_ScalarType_co</em>]]</p>
24912491
</dd>
24922492
</dl>
24932493
</dd></dl>

0 commit comments

Comments
 (0)