Skip to content

Commit

Permalink
Deploying to gh-pages from @ f3869eb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
BolunDai0216 committed Jan 16, 2024
1 parent 226dc8e commit 75608e5
Show file tree
Hide file tree
Showing 85 changed files with 414 additions and 70 deletions.
2 changes: 1 addition & 1 deletion main/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9d1bc14f0b2bf56223773334850125b7
config: 7d9687bbce3e8b73e88d840b182c2bb4
tags: d77d1c0d9ca2f4c8421862c7c5a0d620
3 changes: 3 additions & 0 deletions main/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,15 @@
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="/api/wrappers/#view-size">View Size</a></li>
</ul>
Expand Down
3 changes: 3 additions & 0 deletions main/README/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,15 @@
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#view-size">View Size</a></li>
</ul>
Expand Down
3 changes: 3 additions & 0 deletions main/_modules/gymnasium/core/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,15 @@
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#view-size">View Size</a></li>
</ul>
Expand Down
3 changes: 3 additions & 0 deletions main/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,15 @@
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../api/wrappers/#view-size">View Size</a></li>
</ul>
Expand Down
18 changes: 15 additions & 3 deletions main/_modules/minigrid/wrappers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,15 @@
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../../api/wrappers/#view-size">View Size</a></li>
</ul>
Expand Down Expand Up @@ -557,6 +560,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>



<div class="viewcode-block" id="ImgObsWrapper">
<a class="viewcode-back" href="../../../api/wrappers/#minigrid.wrappers.ImgObsWrapper">[docs]</a>
<span class="k">class</span> <span class="nc">ImgObsWrapper</span><span class="p">(</span><span class="n">ObservationWrapper</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Use the image as the only observation output, no language/mission.</span>
Expand Down Expand Up @@ -584,7 +589,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">observation_space</span> <span class="o">=</span> <span class="n">env</span><span class="o">.</span><span class="n">observation_space</span><span class="o">.</span><span class="n">spaces</span><span class="p">[</span><span class="s2">&quot;image&quot;</span><span class="p">]</span>

<span class="k">def</span> <span class="nf">observation</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obs</span><span class="p">):</span>
<span class="k">return</span> <span class="n">obs</span><span class="p">[</span><span class="s2">&quot;image&quot;</span><span class="p">]</span>
<span class="k">return</span> <span class="n">obs</span><span class="p">[</span><span class="s2">&quot;image&quot;</span><span class="p">]</span></div>



<div class="viewcode-block" id="OneHotPartialObsWrapper">
Expand Down Expand Up @@ -710,6 +716,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>



<div class="viewcode-block" id="RGBImgPartialObsWrapper">
<a class="viewcode-back" href="../../../api/wrappers/#minigrid.wrappers.RGBImgPartialObsWrapper">[docs]</a>
<span class="k">class</span> <span class="nc">RGBImgPartialObsWrapper</span><span class="p">(</span><span class="n">ObservationWrapper</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Wrapper to use partially observable RGB image as observation.</span>
Expand Down Expand Up @@ -754,7 +762,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">observation</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obs</span><span class="p">):</span>
<span class="n">rgb_img_partial</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_frame</span><span class="p">(</span><span class="n">tile_size</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">tile_size</span><span class="p">,</span> <span class="n">agent_pov</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

<span class="k">return</span> <span class="p">{</span><span class="o">**</span><span class="n">obs</span><span class="p">,</span> <span class="s2">&quot;image&quot;</span><span class="p">:</span> <span class="n">rgb_img_partial</span><span class="p">}</span>
<span class="k">return</span> <span class="p">{</span><span class="o">**</span><span class="n">obs</span><span class="p">,</span> <span class="s2">&quot;image&quot;</span><span class="p">:</span> <span class="n">rgb_img_partial</span><span class="p">}</span></div>



<div class="viewcode-block" id="FullyObsWrapper">
Expand Down Expand Up @@ -1167,6 +1176,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>



<div class="viewcode-block" id="StochasticActionWrapper">
<a class="viewcode-back" href="../../../api/wrappers/#minigrid.wrappers.StochasticActionWrapper">[docs]</a>
<span class="k">class</span> <span class="nc">StochasticActionWrapper</span><span class="p">(</span><span class="n">ActionWrapper</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Add stochasticity to the actions</span>
Expand All @@ -1188,7 +1199,8 @@ <h1>Source code for minigrid.wrappers</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">random_action</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">np_random</span><span class="o">.</span><span class="n">integers</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">high</span><span class="o">=</span><span class="mi">6</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">random_action</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">random_action</span></div>



<div class="viewcode-block" id="NoDeath">
Expand Down
3 changes: 3 additions & 0 deletions main/api/wrapper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,15 @@
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#direction-obs">Direction Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#flatobs">FlatObs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#fully-obs">Fully Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#image-observation">Image Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#no-death">No Death</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#observation">Observation</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#one-hot-partial-obs">One Hot Partial Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#reseed">Reseed</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#rgb-img-obs">RGB Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#rgb-partial-img-obs">RGB Partial Img Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#position-bonus">Position Bonus</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#stochastic-action">Stochastic Action</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#symbolic-obs">Symbolic Obs</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wrappers/#view-size">View Size</a></li>
</ul>
Expand Down
Loading

0 comments on commit 75608e5

Please sign in to comment.