Skip to content

Commit

Permalink
deploy: c5ca65d
Browse files Browse the repository at this point in the history
  • Loading branch information
watakandai committed Jul 23, 2024
1 parent 35ef68a commit 33e499a
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 11 deletions.
Binary file not shown.
Binary file not shown.
Binary file modified .doctrees/_autosummary/specless.dataset.BaseDataset.doctree
Binary file not shown.
Binary file modified .doctrees/_autosummary/specless.minigrid.tspenv.TSPEnv.doctree
Binary file not shown.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ <h1>specless.automaton.transition_system.MinigridTransitionSystem<a class="heade

<dl class="py method">
<dt class="sig sig-object py" id="specless.automaton.transition_system.MinigridTransitionSystem.run">
<span class="sig-name descname"><span class="pre">run</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">word:</span> <span class="pre">{typing.Hashable,</span> <span class="pre">typing.Iterable[enum.IntEnum],</span> <span class="pre">typing.Iterable[typing.Hashable],</span> <span class="pre">&lt;enum</span> <span class="pre">'IntEnum'&gt;},</span> <span class="pre">record_video:</span> <span class="pre">bool</span> <span class="pre">=</span> <span class="pre">False,</span> <span class="pre">video_folder:</span> <span class="pre">str</span> <span class="pre">=</span> <span class="pre">'',</span> <span class="pre">**get_next_state_kwargs:</span> <span class="pre">dict</span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><span class="pre">Hashable</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><span class="pre">Hashable</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="reference internal" href="../_modules/specless/automaton/transition_system.html#MinigridTransitionSystem.run"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.automaton.transition_system.MinigridTransitionSystem.run" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">run</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="pre">word:</span> <span class="pre">{typing.Hashable,</span> <span class="pre">&lt;enum</span> <span class="pre">'IntEnum'&gt;,</span> <span class="pre">typing.Iterable[enum.IntEnum],</span> <span class="pre">typing.Iterable[typing.Hashable]},</span> <span class="pre">record_video:</span> <span class="pre">bool</span> <span class="pre">=</span> <span class="pre">False,</span> <span class="pre">video_folder:</span> <span class="pre">str</span> <span class="pre">=</span> <span class="pre">'',</span> <span class="pre">**get_next_state_kwargs:</span> <span class="pre">dict</span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">Tuple</span><span class="p"><span class="pre">[</span></span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><span class="pre">Hashable</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">,</span></span><span class="w"> </span><span class="pre">Iterable</span><span class="p"><span class="pre">[</span></span><span class="pre">Hashable</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span></span><a class="reference internal" href="../_modules/specless/automaton/transition_system.html#MinigridTransitionSystem.run"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.automaton.transition_system.MinigridTransitionSystem.run" title="Link to this definition"></a></dt>
<dd><p>processes a input word and produces a output word &amp; state sequence</p>
</dd></dl>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ <h1>specless.automaton.transition_system.TSBuilder<a class="headerlink" href="#s
</table>
<dl class="py method">
<dt class="sig sig-object py" id="specless.automaton.transition_system.TSBuilder.__call__">
<span class="sig-name descname"><span class="pre">__call__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph_data:</span> <span class="pre">{&lt;class</span> <span class="pre">'specless.wrapper.tswrapper.TransitionSystemWrapper'&gt;</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">&lt;class</span> <span class="pre">'str'&gt;}</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="specless.automaton.transition_system.TransitionSystem.html#specless.automaton.transition_system.TransitionSystem" title="specless.automaton.transition_system.TransitionSystem"><span class="pre">TransitionSystem</span></a></span></span><a class="reference internal" href="../_modules/specless/automaton/transition_system.html#TSBuilder.__call__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.automaton.transition_system.TSBuilder.__call__" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">__call__</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph_data:</span> <span class="pre">{&lt;class</span> <span class="pre">'str'&gt;</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">&lt;class</span> <span class="pre">'specless.wrapper.tswrapper.TransitionSystemWrapper'&gt;}</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="specless.automaton.transition_system.TransitionSystem.html#specless.automaton.transition_system.TransitionSystem" title="specless.automaton.transition_system.TransitionSystem"><span class="pre">TransitionSystem</span></a></span></span><a class="reference internal" href="../_modules/specless/automaton/transition_system.html#TSBuilder.__call__"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.automaton.transition_system.TSBuilder.__call__" title="Link to this definition"></a></dt>
<dd><p>Returns an initialized TransitionSystem instance given the graph_data</p>
<p>graph_data and graph_data_format must match</p>
<dl class="field-list simple">
Expand Down
2 changes: 1 addition & 1 deletion _autosummary/specless.dataset.BaseDataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h1>specless.dataset.BaseDataset<a class="headerlink" href="#specless-dataset-ba
<dl class="py class">
<dt class="sig sig-object py" id="specless.dataset.BaseDataset">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">specless.dataset.</span></span><span class="sig-name descname"><span class="pre">BaseDataset</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">data</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">DataFrame</span><span class="p"><span class="pre">]</span></span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/specless/dataset.html#BaseDataset"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.dataset.BaseDataset" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Dataset</span></code></p>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Base Dataset Class</p>
<p class="rubric">Methods</p>
<table class="autosummary longtable docutils align-default">
Expand Down
2 changes: 1 addition & 1 deletion _autosummary/specless.minigrid.tspenv.TSPEnv.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<h1>specless.minigrid.tspenv.TSPEnv<a class="headerlink" href="#specless-minigrid-tspenv-tspenv" title="Link to this heading"></a></h1>
<dl class="py class">
<dt class="sig sig-object py" id="specless.minigrid.tspenv.TSPEnv">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">specless.minigrid.tspenv.</span></span><span class="sig-name descname"><span class="pre">TSPEnv</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">num_locations</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">6</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">height</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">6</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">agent_start_pos</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><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="pre">int</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">(1,</span> <span class="pre">1)</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">agent_start_dir</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></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</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">seed</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/specless/minigrid/tspenv.html#TSPEnv"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.minigrid.tspenv.TSPEnv" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">specless.minigrid.tspenv.</span></span><span class="sig-name descname"><span class="pre">TSPEnv</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">num_locations</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">width</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">6</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">height</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">6</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">agent_start_pos</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><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="pre">int</span><span class="p"><span class="pre">]</span></span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">(1,</span> <span class="pre">1)</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">agent_start_dir</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></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</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">seed</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">**</span></span><span class="n"><span class="pre">kwargs</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/specless/minigrid/tspenv.html#TSPEnv"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#specless.minigrid.tspenv.TSPEnv" title="Link to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">MiniGridEnv</span></code></p>
<p>TSP Environment with Multiple floor locations with duplicate colors</p>
<p class="rubric">Methods</p>
Expand Down
6 changes: 1 addition & 5 deletions _modules/specless/dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,19 +130,17 @@ <h1>Source code for specless.dataset</h1><div class="highlight"><pre>

<span class="kn">import</span> <span class="nn">glob</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">abstractmethod</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Union</span>

<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="kn">from</span> <span class="nn">torch.utils.data</span> <span class="kn">import</span> <span class="n">Dataset</span>

<span class="kn">from</span> <span class="nn">specless.typing</span> <span class="kn">import</span> <span class="n">Data</span>


<div class="viewcode-block" id="BaseDataset">
<a class="viewcode-back" href="../../_autosummary/specless.dataset.BaseDataset.html#specless.dataset.BaseDataset">[docs]</a>
<span class="k">class</span> <span class="nc">BaseDataset</span><span class="p">(</span><span class="n">Dataset</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">BaseDataset</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Base Dataset Class</span>

<span class="sd"> Attributes</span>
Expand Down Expand Up @@ -171,7 +169,6 @@ <h1>Source code for specless.dataset</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">)</span>

<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="fm">__len__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">int</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get the length of the data.</span>

Expand All @@ -182,7 +179,6 @@ <h1>Source code for specless.dataset</h1><div class="highlight"><pre>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">data</span><span class="p">)</span>

<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">idx</span><span class="p">:</span> <span class="nb">int</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Any</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Get the item at the specified index.</span>

Expand Down
3 changes: 2 additions & 1 deletion _modules/specless/minigrid/tspenv.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

<h1>Source code for specless.minigrid.tspenv</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">random</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Tuple</span>

<span class="kn">import</span> <span class="nn">distinctipy</span>
<span class="kn">import</span> <span class="nn">gymnasium</span> <span class="k">as</span> <span class="nn">gym</span>
Expand Down Expand Up @@ -96,7 +97,7 @@ <h1>Source code for specless.minigrid.tspenv</h1><div class="highlight"><pre>
<span class="n">num_locations</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">5</span><span class="p">,</span>
<span class="n">width</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">6</span><span class="p">,</span>
<span class="n">height</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">6</span><span class="p">,</span>
<span class="n">agent_start_pos</span><span class="p">:</span> <span class="nb">tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">),</span>
<span class="n">agent_start_pos</span><span class="p">:</span> <span class="n">Tuple</span><span class="p">[</span><span class="nb">int</span><span class="p">,</span> <span class="nb">int</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">),</span>
<span class="n">agent_start_dir</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span>
<span class="n">seed</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
<span class="o">**</span><span class="n">kwargs</span><span class="p">,</span>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 33e499a

Please sign in to comment.