Skip to content

Commit

Permalink
Rebuild documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
plonerma committed Jul 15, 2020
1 parent 5dbdfc7 commit 0c7cc0c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/_modules/wann_genetic/environment/util.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h1>Source code for wann_genetic.environment.util</h1><div class="highlight"><pr
<span class="n">parent</span><span class="o">=</span><span class="n">p</span><span class="p">,</span>
<span class="nb">id</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;id&#39;</span><span class="p">)[()],</span>
<span class="n">birth</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;birth&#39;</span><span class="p">)[()],</span>
<span class="n">mutations</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;mutations&#39;</span><span class="p">)[()],</span>
<span class="n">mutations</span><span class="o">=</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;mutations&#39;</span><span class="p">)[()]</span> <span class="k">if</span> <span class="s1">&#39;mutations&#39;</span> <span class="ow">in</span> <span class="n">data</span> <span class="k">else</span> <span class="kc">None</span><span class="p">),</span>
<span class="p">)</span></div>


Expand Down
10 changes: 9 additions & 1 deletion docs/_modules/wann_genetic/tools/experiment_series.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ <h1>Source code for wann_genetic.tools.experiment_series</h1><div class="highlig

<span class="kn">from</span> <span class="nn">wann_genetic.util</span> <span class="kn">import</span> <span class="n">ParamTree</span>
<span class="kn">from</span> <span class="nn">wann_genetic</span> <span class="kn">import</span> <span class="n">Environment</span>
<span class="kn">from</span> <span class="nn">wann_genetic.environment.util</span> <span class="kn">import</span> <span class="n">default_params</span>


<div class="viewcode-block" id="Variable"><a class="viewcode-back" href="../../../wann_genetic.tools.html#wann_genetic.tools.Variable">[docs]</a><span class="k">class</span> <span class="nc">Variable</span><span class="p">:</span>
Expand Down Expand Up @@ -105,7 +106,7 @@ <h1>Source code for wann_genetic.tools.experiment_series</h1><div class="highlig

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">spec</span><span class="p">:</span> <span class="n">Mapping</span><span class="p">,</span> <span class="n">base_params</span><span class="o">=</span><span class="nb">dict</span><span class="p">(),</span> <span class="n">data_path</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">variables</span> <span class="o">=</span> <span class="n">OrderedDict</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">base_params</span> <span class="o">=</span> <span class="n">base_params</span>
<span class="bp">self</span><span class="o">.</span><span class="n">base_params</span> <span class="o">=</span> <span class="n">ParamTree</span><span class="p">(</span><span class="n">base_params</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">name_fstr</span> <span class="o">=</span> <span class="n">spec</span><span class="p">[</span><span class="s1">&#39;experiment_name&#39;</span><span class="p">]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">data_path</span> <span class="o">=</span> <span class="n">data_path</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_environments</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
Expand Down Expand Up @@ -133,6 +134,13 @@ <h1>Source code for wann_genetic.tools.experiment_series</h1><div class="highlig

<span class="k">return</span> <span class="bp">cls</span><span class="p">(</span><span class="n">spec</span><span class="o">=</span><span class="n">spec</span><span class="p">,</span> <span class="n">base_params</span><span class="o">=</span><span class="n">base_params</span><span class="p">,</span> <span class="n">data_path</span><span class="o">=</span><span class="n">data_path</span><span class="p">)</span></div>

<div class="viewcode-block" id="ExperimentSeries.full_base_params"><a class="viewcode-back" href="../../../wann_genetic.tools.html#wann_genetic.tools.ExperimentSeries.full_base_params">[docs]</a> <span class="k">def</span> <span class="nf">full_base_params</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Returns complete base params including the default params.&quot;&quot;&quot;</span>
<span class="n">params</span> <span class="o">=</span> <span class="n">ParamTree</span><span class="p">(</span><span class="n">default_params</span><span class="p">)</span>
<span class="n">params</span><span class="o">.</span><span class="n">update_params</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">base_params</span><span class="p">)</span>
<span class="k">return</span> <span class="n">params</span></div>


<div class="viewcode-block" id="ExperimentSeries.init_variables"><a class="viewcode-back" href="../../../wann_genetic.tools.html#wann_genetic.tools.ExperimentSeries.init_variables">[docs]</a> <span class="k">def</span> <span class="nf">init_variables</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">spec</span><span class="p">:</span> <span class="n">Mapping</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Initialize the variables.&quot;&quot;&quot;</span>
<span class="k">for</span> <span class="n">name</span><span class="p">,</span> <span class="n">var</span> <span class="ow">in</span> <span class="n">spec</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
Expand Down
6 changes: 4 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,17 @@ <h2 id="F">F</h2>
<li><a href="wann_genetic.individual.torch.html#wann_genetic.individual.torch.rnn.ReConcatLayer.forward">(wann_genetic.individual.torch.rnn.ReConcatLayer method)</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="wann_genetic.individual.html#wann_genetic.individual.network_base.BaseFFNN.from_genes">from_genes() (wann_genetic.individual.network_base.BaseFFNN class method)</a>

<ul>
<li><a href="wann_genetic.individual.html#wann_genetic.individual.network_base.BaseRNN.from_genes">(wann_genetic.individual.network_base.BaseRNN class method)</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="wann_genetic.tools.html#wann_genetic.tools.experiment_series.ExperimentSeries.from_spec_file">from_spec_file() (wann_genetic.tools.experiment_series.ExperimentSeries class method)</a>
</li>
<li><a href="wann_genetic.tools.html#wann_genetic.tools.experiment_series.ExperimentSeries.full_base_params">full_base_params() (wann_genetic.tools.experiment_series.ExperimentSeries method)</a>
</li>
<li><a href="wann_genetic.individual.html#wann_genetic.individual.genes.Genes.full_initial">full_initial() (wann_genetic.individual.genes.Genes class method)</a>

Expand Down
Binary file modified docs/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/wann_genetic.tools.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
<dd><p>Create experiment series from toml specification file.</p>
</dd></dl>

<dl class="py method">
<dt id="wann_genetic.tools.experiment_series.ExperimentSeries.full_base_params">
<code class="sig-name descname">full_base_params</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/wann_genetic/tools/experiment_series.html#ExperimentSeries.full_base_params"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#wann_genetic.tools.experiment_series.ExperimentSeries.full_base_params" title="Permalink to this definition"></a></dt>
<dd><p>Returns complete base params including the default params.</p>
</dd></dl>

<dl class="py method">
<dt id="wann_genetic.tools.experiment_series.ExperimentSeries.init_variables">
<code class="sig-name descname">init_variables</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">spec</span><span class="p">:</span> <span class="n"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping" title="(in Python v3.8)">collections.abc.Mapping</a></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/wann_genetic/tools/experiment_series.html#ExperimentSeries.init_variables"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#wann_genetic.tools.experiment_series.ExperimentSeries.init_variables" title="Permalink to this definition"></a></dt>
Expand Down

0 comments on commit 0c7cc0c

Please sign in to comment.