Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2c6a546 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico committed Jun 25, 2024
1 parent 411d626 commit 627ca3a
Show file tree
Hide file tree
Showing 142 changed files with 239 additions and 1,032 deletions.
Binary file modified dev/.doctrees/api.doctree
Binary file not shown.
Binary file modified dev/.doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/0.1-Theory.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/0.2-Creating_networks.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/0.3-Generalised_filtering.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/1.1-Binary_HGF.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/1.2-Categorical_HGF.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/1.3-Continuous_HGF.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/3-Multilevel_HGF.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/4-Parameter_recovery.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/Example_1_Heart_rate_variability.doctree
Binary file not shown.
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/Example_3_Multi_armed_bandit.doctree
Binary file not shown.
Binary file modified dev/.doctrees/notebooks/Exercise_1_Using_the_HGF.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
File renamed without changes
File renamed without changes
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
5 changes: 5 additions & 0 deletions dev/_modules/pyhgf/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,11 @@ <h1>Source code for pyhgf.math</h1><div class="highlight"><pre>
<span class="o">+</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">expected_mean</span><span class="p">)</span> <span class="o">*</span> <span class="n">gaussian_density</span><span class="p">(</span><span class="n">value</span><span class="p">,</span> <span class="n">eta0</span><span class="p">,</span> <span class="n">expected_precision</span><span class="p">)</span>
<span class="p">)</span></div>



<span class="k">def</span> <span class="nf">sigmoid_inverse_temperature</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">temperature</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute the sigmoid response function with inverse temperature parameter.&quot;&quot;&quot;</span>
<span class="k">return</span> <span class="p">(</span><span class="n">x</span><span class="o">**</span><span class="n">temperature</span><span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="n">x</span><span class="o">**</span><span class="n">temperature</span> <span class="o">+</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">x</span><span class="p">)</span> <span class="o">**</span> <span class="n">temperature</span><span class="p">)</span>
</pre></div>

</article>
Expand Down
36 changes: 0 additions & 36 deletions dev/_modules/pyhgf/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -561,42 +561,6 @@ <h1>Source code for pyhgf.utils</h1><div class="highlight"><pre>



<div class="viewcode-block" id="trim_sequence">
<a class="viewcode-back" href="../../generated/pyhgf.utils/pyhgf.utils.trim_sequence.html#pyhgf.utils.trim_sequence">[docs]</a>
<span class="k">def</span> <span class="nf">trim_sequence</span><span class="p">(</span>
<span class="n">exclude_node_idxs</span><span class="p">:</span> <span class="n">List</span><span class="p">,</span> <span class="n">update_sequence</span><span class="p">:</span> <span class="n">UpdateSequence</span><span class="p">,</span> <span class="n">edges</span><span class="p">:</span> <span class="n">Tuple</span>
<span class="p">)</span> <span class="o">-&gt;</span> <span class="n">UpdateSequence</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Remove steps from an update sequence that depends on a set of nodes.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> exclude_node_idxs :</span>
<span class="sd"> A list of node indexes. The nodes can be input nodes or any other node in the</span>
<span class="sd"> network.</span>
<span class="sd"> update_sequence :</span>
<span class="sd"> The sequence of updates that will be applied to the node structure.</span>
<span class="sd"> edges :</span>
<span class="sd"> The nodes structure.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> trimmed_update_sequence :</span>
<span class="sd"> The update sequence without the update steps for nodes depending on the root</span>
<span class="sd"> list.</span>

<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># list the nodes that depend on the root indexes</span>
<span class="n">branch_list</span> <span class="o">=</span> <span class="n">list_branches</span><span class="p">(</span><span class="n">node_idxs</span><span class="o">=</span><span class="n">exclude_node_idxs</span><span class="p">,</span> <span class="n">edges</span><span class="o">=</span><span class="n">edges</span><span class="p">)</span>

<span class="c1"># remove the update steps that are targetting the excluded nodes</span>
<span class="n">trimmed_update_sequence</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span>
<span class="p">[</span><span class="n">seq</span> <span class="k">for</span> <span class="n">seq</span> <span class="ow">in</span> <span class="n">update_sequence</span> <span class="k">if</span> <span class="n">seq</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">branch_list</span><span class="p">]</span>
<span class="p">)</span>

<span class="k">return</span> <span class="n">trimmed_update_sequence</span></div>



<div class="viewcode-block" id="list_branches">
<a class="viewcode-back" href="../../generated/pyhgf.utils/pyhgf.utils.list_branches.html#pyhgf.utils.list_branches">[docs]</a>
<span class="k">def</span> <span class="nf">list_branches</span><span class="p">(</span><span class="n">node_idxs</span><span class="p">:</span> <span class="n">List</span><span class="p">,</span> <span class="n">edges</span><span class="p">:</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">branch_list</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="p">[])</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">:</span>
Expand Down

This file was deleted.

Loading

0 comments on commit 627ca3a

Please sign in to comment.