Skip to content

Commit

Permalink
Update Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sooftware committed Mar 23, 2020
1 parent cc8acda commit f0ee719
Show file tree
Hide file tree
Showing 151 changed files with 1,099 additions and 415 deletions.
8 changes: 4 additions & 4 deletions docs/Checkpoint.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Dataset" href="Dataset.html" />
<link rel="next" title="Config" href="Config.html" />
<link rel="prev" title="Models" href="Models.html" />
</head>

Expand Down Expand Up @@ -97,10 +97,10 @@
<p class="caption"><span class="caption-text">Package Reference</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Checkpoint</a></li>
<li class="toctree-l1"><a class="reference internal" href="Config.html">Config</a></li>
<li class="toctree-l1"><a class="reference internal" href="Dataset.html">Dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="Evaluator.html">Evaluator</a></li>
<li class="toctree-l1"><a class="reference internal" href="Feature.html">Feature</a></li>
<li class="toctree-l1"><a class="reference internal" href="Hparams.html">Hparams</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loader.html">Loader</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loss.html">Loss</a></li>
<li class="toctree-l1"><a class="reference internal" href="Trainer.html">Trainer</a></li>
Expand Down Expand Up @@ -173,7 +173,7 @@
<span id="checkpoint"></span><h1>Checkpoint<a class="headerlink" href="#module-package.checkpoint" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="package.checkpoint.CheckPoint">
<em class="property">class </em><code class="descclassname">package.checkpoint.</code><code class="descname">CheckPoint</code><span class="sig-paren">(</span><em>model=None</em>, <em>epoch=None</em>, <em>train_dataset_list=None</em>, <em>valid_dataset=None</em>, <em>time_step=None</em>, <em>total_time_step=None</em>, <em>hparams=None</em>, <em>queue=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/checkpoint.html#CheckPoint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.checkpoint.CheckPoint" title="Permalink to this definition"></a></dt>
<em class="property">class </em><code class="descclassname">package.checkpoint.</code><code class="descname">CheckPoint</code><span class="sig-paren">(</span><em>model=None</em>, <em>epoch=None</em>, <em>train_dataset_list=None</em>, <em>valid_dataset=None</em>, <em>time_step=None</em>, <em>total_time_step=None</em>, <em>config=None</em>, <em>queue=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/checkpoint.html#CheckPoint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.checkpoint.CheckPoint" title="Permalink to this definition"></a></dt>
<dd><p>The Checkpoint class manages the saving and loading of a model during training. It allows training to be suspended
and resumed at a later time (e.g. when running on a cluster using sequential jobs).</p>
<p>To make a checkpoint, initialize a Checkpoint object with the following args; then call that object’s save() method
Expand Down Expand Up @@ -205,7 +205,7 @@

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="Dataset.html" class="btn btn-neutral float-right" title="Dataset" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="Config.html" class="btn btn-neutral float-right" title="Config" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="Models.html" class="btn btn-neutral float-left" title="Models" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
Expand Down
32 changes: 16 additions & 16 deletions docs/Hparams.html → docs/Config.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Hparams &mdash; Korean Speech Recognition 1.0 documentation</title>
<title>Config &mdash; Korean Speech Recognition 1.0 documentation</title>



Expand All @@ -35,8 +35,8 @@
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Loader" href="Loader.html" />
<link rel="prev" title="Feature" href="Feature.html" />
<link rel="next" title="Dataset" href="Dataset.html" />
<link rel="prev" title="Checkpoint" href="Checkpoint.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -97,10 +97,10 @@
<p class="caption"><span class="caption-text">Package Reference</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="Checkpoint.html">Checkpoint</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Config</a></li>
<li class="toctree-l1"><a class="reference internal" href="Dataset.html">Dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="Evaluator.html">Evaluator</a></li>
<li class="toctree-l1"><a class="reference internal" href="Feature.html">Feature</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Hparams</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loader.html">Loader</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loss.html">Loss</a></li>
<li class="toctree-l1"><a class="reference internal" href="Trainer.html">Trainer</a></li>
Expand Down Expand Up @@ -150,13 +150,13 @@

<li><a href="index.html">Docs</a> &raquo;</li>

<li>Hparams</li>
<li>Config</li>


<li class="wy-breadcrumbs-aside">


<a href="_sources/Hparams.rst.txt" rel="nofollow"> View page source</a>
<a href="_sources/Config.rst.txt" rel="nofollow"> View page source</a>


</li>
Expand All @@ -169,12 +169,12 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<div class="section" id="module-package.hparams">
<span id="hparams"></span><h1>Hparams<a class="headerlink" href="#module-package.hparams" title="Permalink to this headline"></a></h1>
<div class="section" id="module-package.config">
<span id="config"></span><h1>Config<a class="headerlink" href="#module-package.config" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="package.hparams.HyperParams">
<em class="property">class </em><code class="descclassname">package.hparams.</code><code class="descname">HyperParams</code><span class="sig-paren">(</span><em>use_bidirectional=True</em>, <em>use_attention=True</em>, <em>use_label_smooth=True</em>, <em>input_reverse=True</em>, <em>use_augment=True</em>, <em>use_pickle=False</em>, <em>use_pyramidal=False</em>, <em>use_cuda=True</em>, <em>pack_by_length=True</em>, <em>augment_ratio=1.0</em>, <em>hidden_size=256</em>, <em>dropout=0.5</em>, <em>listener_layer_size=5</em>, <em>speller_layer_size=3</em>, <em>batch_size=8</em>, <em>worker_num=1</em>, <em>max_epochs=40</em>, <em>use_multistep_lr=False</em>, <em>init_lr=0.0001</em>, <em>high_plateau_lr=0.0003</em>, <em>low_plateau_lr=1e-05</em>, <em>teacher_forcing=0.9</em>, <em>seed=1</em>, <em>max_len=151</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/hparams.html#HyperParams"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.hparams.HyperParams" title="Permalink to this definition"></a></dt>
<dd><p>Hyperparameters</p>
<dt id="package.config.Config">
<em class="property">class </em><code class="descclassname">package.config.</code><code class="descname">Config</code><span class="sig-paren">(</span><em>use_bidirectional=True</em>, <em>use_attention=True</em>, <em>use_label_smooth=True</em>, <em>input_reverse=True</em>, <em>use_augment=True</em>, <em>use_pickle=True</em>, <em>use_pyramidal=False</em>, <em>use_cuda=True</em>, <em>pack_by_length=True</em>, <em>augment_ratio=1.0</em>, <em>hidden_size=256</em>, <em>dropout=0.5</em>, <em>listener_layer_size=5</em>, <em>speller_layer_size=3</em>, <em>batch_size=8</em>, <em>worker_num=1</em>, <em>max_epochs=40</em>, <em>use_multistep_lr=False</em>, <em>init_lr=0.0001</em>, <em>high_plateau_lr=0.0003</em>, <em>low_plateau_lr=1e-05</em>, <em>teacher_forcing=0.9</em>, <em>seed=1</em>, <em>max_len=151</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/config.html#Config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.config.Config" title="Permalink to this definition"></a></dt>
<dd><p>Configuration</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
Expand Down Expand Up @@ -210,9 +210,9 @@
</tbody>
</table>
<dl class="method">
<dt id="package.hparams.HyperParams.logger_hparams">
<code class="descname">logger_hparams</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/hparams.html#HyperParams.logger_hparams"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.hparams.HyperParams.logger_hparams" title="Permalink to this definition"></a></dt>
<dd><p>print information of hyperparameters</p>
<dt id="package.config.Config.print_log">
<code class="descname">print_log</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/config.html#Config.print_log"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.config.Config.print_log" title="Permalink to this definition"></a></dt>
<dd><p>print information of configuration</p>
</dd></dl>

</dd></dl>
Expand All @@ -227,10 +227,10 @@

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="Loader.html" class="btn btn-neutral float-right" title="Loader" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="Dataset.html" class="btn btn-neutral float-right" title="Dataset" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="Feature.html" class="btn btn-neutral float-left" title="Feature" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="Checkpoint.html" class="btn btn-neutral float-left" title="Checkpoint" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

</div>

Expand Down
14 changes: 7 additions & 7 deletions docs/Dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Evaluator" href="Evaluator.html" />
<link rel="prev" title="Checkpoint" href="Checkpoint.html" />
<link rel="prev" title="Config" href="Config.html" />
</head>

<body class="wy-body-for-nav">
Expand Down Expand Up @@ -97,10 +97,10 @@
<p class="caption"><span class="caption-text">Package Reference</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="Checkpoint.html">Checkpoint</a></li>
<li class="toctree-l1"><a class="reference internal" href="Config.html">Config</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="Evaluator.html">Evaluator</a></li>
<li class="toctree-l1"><a class="reference internal" href="Feature.html">Feature</a></li>
<li class="toctree-l1"><a class="reference internal" href="Hparams.html">Hparams</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loader.html">Loader</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loss.html">Loss</a></li>
<li class="toctree-l1"><a class="reference internal" href="Trainer.html">Trainer</a></li>
Expand Down Expand Up @@ -173,7 +173,7 @@
<span id="dataset"></span><h1>Dataset<a class="headerlink" href="#module-package.dataset" title="Permalink to this headline"></a></h1>
<dl class="class">
<dt id="package.dataset.BaseDataset">
<em class="property">class </em><code class="descclassname">package.dataset.</code><code class="descname">BaseDataset</code><span class="sig-paren">(</span><em>audio_paths</em>, <em>label_paths</em>, <em>sos_id=2037</em>, <em>eos_id=2038</em>, <em>target_dict=None</em>, <em>input_reverse=True</em>, <em>use_augment=True</em>, <em>batch_size=None</em>, <em>augment_ratio=0.3</em>, <em>pack_by_length=True</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#BaseDataset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.BaseDataset" title="Permalink to this definition"></a></dt>
<em class="property">class </em><code class="descclassname">package.dataset.</code><code class="descname">BaseDataset</code><span class="sig-paren">(</span><em>audio_paths</em>, <em>label_paths</em>, <em>sos_id</em>, <em>eos_id</em>, <em>target_dict=None</em>, <em>input_reverse=True</em>, <em>use_augment=True</em>, <em>batch_size=None</em>, <em>augment_ratio=1.0</em>, <em>pack_by_length=True</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#BaseDataset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.BaseDataset" title="Permalink to this definition"></a></dt>
<dd><p>Dataset for audio &amp; label matching</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
Expand Down Expand Up @@ -203,7 +203,7 @@

<dl class="method">
<dt id="package.dataset.BaseDataset.batch_shuffle">
<code class="descname">batch_shuffle</code><span class="sig-paren">(</span><em>remain_drop=False</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#BaseDataset.batch_shuffle"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.BaseDataset.batch_shuffle" title="Permalink to this definition"></a></dt>
<code class="descname">batch_shuffle</code><span class="sig-paren">(</span><em>drop_last=False</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#BaseDataset.batch_shuffle"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.BaseDataset.batch_shuffle" title="Permalink to this definition"></a></dt>
<dd><p>batch shuffle</p>
</dd></dl>

Expand All @@ -223,14 +223,14 @@

<dl class="function">
<dt id="package.dataset.split_dataset">
<code class="descclassname">package.dataset.</code><code class="descname">split_dataset</code><span class="sig-paren">(</span><em>hparams</em>, <em>audio_paths</em>, <em>label_paths</em>, <em>valid_ratio=0.05</em>, <em>target_dict=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#split_dataset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.split_dataset" title="Permalink to this definition"></a></dt>
<code class="descclassname">package.dataset.</code><code class="descname">split_dataset</code><span class="sig-paren">(</span><em>config</em>, <em>audio_paths</em>, <em>label_paths</em>, <em>valid_ratio=0.05</em>, <em>target_dict=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/package/dataset.html#split_dataset"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#package.dataset.split_dataset" title="Permalink to this definition"></a></dt>
<dd><p>Dataset split into training and validation Dataset.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>hparams</strong> (<a class="reference internal" href="Hparams.html#package.hparams.HyperParams" title="package.hparams.HyperParams"><em>package.hparams.HyperParams</em></a>) – set of hyper parameters</li>
<li><strong>config</strong> (<em>package.config.HyperParams</em>) – set of configures</li>
<li><strong>audio_paths</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.8)"><em>list</em></a>) – set of audio path</li>
<li><strong>label_paths</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.8)"><em>list</em></a>) – set of label path</li>
<li><strong>target_dict</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.8)"><em>dict</em></a>) – dictionary of filename and target</li>
Expand Down Expand Up @@ -263,7 +263,7 @@
<a href="Evaluator.html" class="btn btn-neutral float-right" title="Evaluator" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>


<a href="Checkpoint.html" class="btn btn-neutral float-left" title="Checkpoint" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="Config.html" class="btn btn-neutral float-left" title="Config" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>

</div>

Expand Down
2 changes: 1 addition & 1 deletion docs/Evaluator.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@
<p class="caption"><span class="caption-text">Package Reference</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="Checkpoint.html">Checkpoint</a></li>
<li class="toctree-l1"><a class="reference internal" href="Config.html">Config</a></li>
<li class="toctree-l1"><a class="reference internal" href="Dataset.html">Dataset</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Evaluator</a></li>
<li class="toctree-l1"><a class="reference internal" href="Feature.html">Feature</a></li>
<li class="toctree-l1"><a class="reference internal" href="Hparams.html">Hparams</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loader.html">Loader</a></li>
<li class="toctree-l1"><a class="reference internal" href="Loss.html">Loss</a></li>
<li class="toctree-l1"><a class="reference internal" href="Trainer.html">Trainer</a></li>
Expand Down
Loading

0 comments on commit f0ee719

Please sign in to comment.