Skip to content

Commit

Permalink
🎪 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
raynardj committed Nov 5, 2021
1 parent cac6b26 commit 425a41f
Show file tree
Hide file tree
Showing 13 changed files with 649 additions and 217 deletions.
18 changes: 10 additions & 8 deletions docs/async.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

title: Async


keywords: fastai
sidebar: home_sidebar

summary: "Async toolset"
description: "Async toolset"
nb_path: "nbs/03_async.ipynb"
---
<!--
Expand Down Expand Up @@ -37,21 +39,14 @@ <h2 id="Async-class">Async class<a class="anchor-link" href="#Async-class"> </a>

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h4 id="Async" class="doc_header"><code>Async</code><a href="__main__.py#L4" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>Async</code>(<strong><code>func</code></strong>:<code>Callable</code>)</p>
<h4 id="Async" class="doc_header"><code>Async</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/asyncing.py#L8" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>Async</code>(<strong><code>func</code></strong>:<code>Callable</code>)</p>
</blockquote>
<p>JS style async tool
def download_file(url):
Expand All @@ -68,6 +63,13 @@ <h4 id="Async" class="doc_header"><code>Async</code><a href="__main__.py#L4" cla
</div>
</div>

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

Expand Down
32 changes: 17 additions & 15 deletions docs/bert_visualize.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

title: Bert Visualize


keywords: fastai
sidebar: home_sidebar

summary: "Visualize masked language modeling transformer model"
description: "Visualize masked language modeling transformer model"
nb_path: "nbs/bert_visualize.ipynb"
---
<!--
Expand Down Expand Up @@ -121,13 +123,6 @@

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

Expand All @@ -145,6 +140,13 @@ <h2 id="MLMVisualizer" class="doc_header"><code>class</code> <code>MLMVisualizer
</div>
</div>

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

Expand All @@ -169,13 +171,6 @@ <h2 id="MLMVisualizer" class="doc_header"><code>class</code> <code>MLMVisualizer

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

Expand Down Expand Up @@ -279,7 +274,7 @@ <h4 id="visualize" class="doc_header"><code>visualize</code><a href="https://git


<div class="output_markdown rendered_html output_subarea ">
<h4 id="visualize_result" class="doc_header"><code>visualize_result</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/bert_visualize.py#L104" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>visualize_result</code>(<strong><code>vis</code></strong>, <strong><code>result</code></strong>:<a href="/forgebox/config#Config"><code>Config</code></a>)</p>
<h4 id="visualize_result" class="doc_header"><code>visualize_result</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/bert_visualize.py#L104" class="source_link" style="float:right">[source]</a></h4><blockquote><p><code>visualize_result</code>(<strong><code>vis</code></strong>, <strong><code>result</code></strong>:<a href="/forgebox/config.html#Config"><code>Config</code></a>)</p>
</blockquote>

</div>
Expand All @@ -289,6 +284,13 @@ <h4 id="visualize_result" class="doc_header"><code>visualize_result</code><a hre
</div>
</div>

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

Expand Down
49 changes: 29 additions & 20 deletions docs/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

title: Categorical Transformation for DL


keywords: fastai
sidebar: home_sidebar

summary: "a list of things to categoryical transformation"
description: "a list of things to categoryical transformation"
nb_path: "nbs/53_category.ipynb"
---
<!--
Expand Down Expand Up @@ -37,21 +39,14 @@ <h2 id="Imports">Imports<a class="anchor-link" href="#Imports"> </a></h2>

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="C2I" class="doc_header"><code>class</code> <code>C2I</code><a href="" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>C2I</code>(<strong><code>arr</code></strong>:<code>Iterable</code>[<code>T_co</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>)</p>
<h2 id="C2I" class="doc_header"><code>class</code> <code>C2I</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/category.py#L15" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>C2I</code>(<strong><code>arr</code></strong>:<code>Iterable</code>[<code>T_co</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>)</p>
</blockquote>
<p>Category to indices</p>
<blockquote><blockquote><blockquote><p>c2i = C2I(
Expand Down Expand Up @@ -87,7 +82,7 @@ <h2 id="C2I" class="doc_header"><code>class</code> <code>C2I</code><a href="" cl


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Category" class="doc_header"><code>class</code> <code>Category</code><a href="" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Category</code>(<strong><code>arr</code></strong>:<code>Iterable</code>[<code>T_co</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>)</p>
<h2 id="Category" class="doc_header"><code>class</code> <code>Category</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/category.py#L68" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Category</code>(<strong><code>arr</code></strong>:<code>Iterable</code>[<code>T_co</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>)</p>
</blockquote>
<p>Manage categorical translations
c = Category(
Expand Down Expand Up @@ -117,7 +112,7 @@ <h2 id="Category" class="doc_header"><code>class</code> <code>Category</code><a


<div class="output_markdown rendered_html output_subarea ">
<h2 id="TreeCategory" class="doc_header"><code>class</code> <code>TreeCategory</code><a href="" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>TreeCategory</code>(<strong><code>parent_map</code></strong>:<code>Dict</code>[<code>str</code>, <code>str</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>) :: <a href="/forgebox/category#Category"><code>Category</code></a></p>
<h2 id="TreeCategory" class="doc_header"><code>class</code> <code>TreeCategory</code><a href="https://github.com/raynardj/forgebox/tree/master/forgebox/category.py#L114" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>TreeCategory</code>(<strong><code>parent_map</code></strong>:<code>Dict</code>[<code>str</code>, <code>str</code>], <strong><code>pad_mst</code></strong>:<code>bool</code>=<em><code>False</code></em>) :: <a href="/forgebox/category.html#Category"><code>Category</code></a></p>
</blockquote>
<p>Manage categorical translations
c = Category(
Expand All @@ -133,6 +128,13 @@ <h2 id="TreeCategory" class="doc_header"><code>class</code> <code>TreeCategory</
</div>
</div>

</div>
{% endraw %}

{% raw %}

<div class="cell border-box-sizing code_cell rendered">

</div>
{% endraw %}

Expand Down Expand Up @@ -935,17 +937,24 @@ <h2 id="Tree-data">Tree data<a class="anchor-link" href="#Tree-data"> </a></h2>

<div class="output_area">

<div class="output_subarea output_text output_error">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-green-fg">&lt;ipython-input-7-2c3555cc4180&gt;</span> in <span class="ansi-cyan-fg">&lt;module&gt;</span>
<span class="ansi-green-intense-fg ansi-bold"> 3</span> plt.imshow(
<span class="ansi-green-intense-fg ansi-bold"> 4</span> np.stack(list(tree_category.depth_map_array==i
<span class="ansi-green-fg">----&gt; 5</span><span class="ansi-red-fg"> for i in range(1,tree_category.depth_map_array.max()+1)))[:,:100])
</span>
<span class="ansi-red-fg">NameError</span>: name &#39;tree_category&#39; is not defined</pre>


<div class="output_text output_subarea output_execute_result">
<pre>&lt;matplotlib.image.AxesImage at 0x1c375535d0&gt;</pre>
</div>

</div>

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABIEAAABtCAYAAAA2/3ErAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAALUElEQVR4nO3df6xed10H8PfHdhM3mLPbwLUrdMRFXUzoSLMNZwwyY9lcnH/MOOKPhWAWDcZhIGbyh4km/kFiQA2EpWGYaVAwZWBjCHWDJeIfVtqtMkZBmwms3uk2GNtQw6h+/ON5JvXuNn3u7X16nt7zeiXNPed8v/d5Pr093+d78+73nFPdHQAAAAA2tu8augAAAAAA5k8IBAAAADACQiAAAACAERACAQAAAIyAEAgAAABgBIRAAAAAACOweag3vnjLpt6x/ZyZ+v7T586bczUAAAAAZ7/n8vRT3X3JSm2DhUA7tp+Tf9i/faa+u7funHM1AAAAAGe/+3vvV07WNtPlYFX1xqr6UlUdrao7V2j/7qr6yLT9QFXtWHu5AAAAAKy3U4ZAVbUpyfuS3JDkyiRvqqorl3V7S5Knu/sHkrwnybvWu1AAAAAA1m6WlUBXJzna3Y929/NJPpzk5mV9bk5yz3R7b5Lrq6rWr0wAAAAATscsIdC2JI+dsH9semzFPt19PMkzSS5a/kJVdXtVHayqg09+7b/XVjEAAAAAqzZLCLTSip5eQ590957u3tXduy65aNMs9QEAAACwDmYJgY4lOfExXpclWTpZn6ranOR7k3x9PQoEAAAA4PTNEgJ9NskVVXV5VZ2b5NYk+5b12Zfktun2LUk+3d0vWgkEAAAAwDA2n6pDdx+vql9Psj/JpiQf7O5Hqur3khzs7n1J7k7yZ1V1NJMVQLfOs2gAAAAA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