Skip to content

Commit

Permalink
Deploying to gh-pages from @ e734fb5 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
liuanji committed Aug 7, 2024
1 parent 3c93110 commit f6fcc30
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 2 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/python-api/tensorcircuit.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/6c76237d839fcdac5c542e5e0b563307/04_query_pc.zip
Binary file not shown.
Binary file modified _downloads/763344228ae6bc253ed1a6cf586aa30d/tutorials_python.zip
Binary file not shown.
Binary file modified _downloads/a398e0b6ad427b76aa1e83a10664efce/01_train_pc.zip
Binary file not shown.
Binary file modified _downloads/d53424265b3faf11303f2bcbe1bdab7b/03_construct_hmm.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion python-api/tensorcircuit.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ <h1>pyjuice.TensorCircuit<a class="headerlink" href="#pyjuice-tensorcircuit" tit

<dl class="py method">
<dt class="sig sig-object py" id="pyjuice.TensorCircuit.mini_batch_em">
<span class="sig-name descname"><span class="pre">mini_batch_em</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">step_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><span class="pre">float</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">pseudocount</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><span class="pre">float</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">keep_zero_params</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><span class="pre">bool</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyjuice.TensorCircuit.mini_batch_em" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">mini_batch_em</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">step_size</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><span class="pre">float</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">pseudocount</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><span class="pre">float</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">0.0</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">keep_zero_params</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><span class="pre">bool</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">step_size_rescaling</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><span class="pre">bool</span></a></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyjuice.TensorCircuit.mini_batch_em" title="Link to this definition"></a></dt>
<dd><p>Perform an EM parameter update step using the accumulated parameter flows.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>step_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><em>float</em></a>) – Step size - updated_params &lt;- (1-step_size) * params + step_size * new_params</p></li>
<li><p><strong>pseudocount</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.12)"><em>float</em></a>) – a pseudo count added to the parameter flows</p></li>
<li><p><strong>keep_zero_params</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><em>bool</em></a>) – if set to <cite>True</cite>, do not add pseudocounts to zero parameters</p></li>
<li><p><strong>step_size_rescaling</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><em>bool</em></a>) – whether to rescale the step size by flows</p></li>
</ul>
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit f6fcc30

Please sign in to comment.