Skip to content

Commit

Permalink
Add docstrings to comparator modules
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrismer committed Jun 16, 2021
1 parent 0b97db6 commit b1fb99f
Show file tree
Hide file tree
Showing 16 changed files with 72 additions and 32 deletions.
5 changes: 4 additions & 1 deletion docs/_modules/seqgra/comparator/curvetablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@

<h1>Source code for seqgra.comparator.curvetablecomparator</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">MIT - CSAIL - Gifford Lab - seqgra</span>
<span class="sd">Curve Table Comparator for PR and ROC curve information</span>

<span class="sd">Classes:</span>
<span class="sd"> - :class:`~seqgra.comparator.curvetablecomparator.CurveTableComparator`: collects PR and ROC curve information in text file</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down
5 changes: 4 additions & 1 deletion docs/_modules/seqgra/comparator/fietablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@

<h1>Source code for seqgra.comparator.fietablecomparator</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">MIT - CSAIL - Gifford Lab - seqgra</span>
<span class="sd">Feature Importance Evaluator Table Comparator for feature importance measures</span>

<span class="sd">Classes:</span>
<span class="sd"> - :class:`~seqgra.comparator.fietablecomparator.FIETableComparator`: collects feature importance evaluator information in text file</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down
7 changes: 3 additions & 4 deletions docs/_modules/seqgra/comparator/prcomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,10 @@

<h1>Source code for seqgra.comparator.prcomparator</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">MIT - CSAIL - Gifford Lab - seqgra</span>
<span class="sd">Creates PR curves of different models</span>

<span class="sd">ROC comparator: creates ROC curves of different models</span>

<span class="sd">@author: Konstantin Krismer</span>
<span class="sd">Classes:</span>
<span class="sd"> - :class:`~seqgra.comparator.prcomparator.PRComparator`: creates PR curves from various grammars and architectures</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down
7 changes: 3 additions & 4 deletions docs/_modules/seqgra/comparator/roccomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,10 @@

<h1>Source code for seqgra.comparator.roccomparator</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">MIT - CSAIL - Gifford Lab - seqgra</span>
<span class="sd">Creates ROC curves of different models</span>

<span class="sd">ROC comparator: creates ROC curves of different models</span>

<span class="sd">@author: Konstantin Krismer</span>
<span class="sd">Classes:</span>
<span class="sd"> - :class:`~seqgra.comparator.roccomparator.ROCComparator`: creates ROC curves from various grammars and architectures</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down
5 changes: 4 additions & 1 deletion docs/_modules/seqgra/comparator/tablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@

<h1>Source code for seqgra.comparator.tablecomparator</h1><div class="highlight"><pre>
<span></span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">MIT - CSAIL - Gifford Lab - seqgra</span>
<span class="sd">Table Comparator for grammar and model information</span>

<span class="sd">Classes:</span>
<span class="sd"> - :class:`~seqgra.comparator.tablecomparator.TableComparator`: collects grammar and model information in text file</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">List</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Tuple</span>
<span class="kn">import</span> <span class="nn">os</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion docs/seqgra.comparator.curvetablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@

<div class="section" id="module-seqgra.comparator.curvetablecomparator">
<span id="seqgra-comparator-curvetablecomparator-module"></span><h1>seqgra.comparator.curvetablecomparator module<a class="headerlink" href="#module-seqgra.comparator.curvetablecomparator" title="Permalink to this headline"></a></h1>
<p>MIT - CSAIL - Gifford Lab - seqgra</p>
<p>Curve Table Comparator for PR and ROC curve information</p>
<dl class="simple">
<dt>Classes:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="#seqgra.comparator.curvetablecomparator.CurveTableComparator" title="seqgra.comparator.curvetablecomparator.CurveTableComparator"><code class="xref py py-class docutils literal notranslate"><span class="pre">CurveTableComparator</span></code></a>: collects PR and ROC curve information in text file</p></li>
</ul>
</dd>
</dl>
<dl class="py class">
<dt class="sig sig-object py" id="seqgra.comparator.curvetablecomparator.CurveTableComparator">
<em class="property"><span class="pre">class</span> </em><span class="sig-name descname"><span class="pre">CurveTableComparator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">analysis_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">output_dir</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">model_labels</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></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="n"><span class="pre">silent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/seqgra/comparator/curvetablecomparator.html#CurveTableComparator"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#seqgra.comparator.curvetablecomparator.CurveTableComparator" title="Permalink to this definition"></a></dt>
Expand Down
8 changes: 7 additions & 1 deletion docs/seqgra.comparator.fietablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@

<div class="section" id="module-seqgra.comparator.fietablecomparator">
<span id="seqgra-comparator-fietablecomparator-module"></span><h1>seqgra.comparator.fietablecomparator module<a class="headerlink" href="#module-seqgra.comparator.fietablecomparator" title="Permalink to this headline"></a></h1>
<p>MIT - CSAIL - Gifford Lab - seqgra</p>
<p>Feature Importance Evaluator Table Comparator for feature importance measures</p>
<dl class="simple">
<dt>Classes:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="#seqgra.comparator.fietablecomparator.FIETableComparator" title="seqgra.comparator.fietablecomparator.FIETableComparator"><code class="xref py py-class docutils literal notranslate"><span class="pre">FIETableComparator</span></code></a>: collects feature importance evaluator information in text file</p></li>
</ul>
</dd>
</dl>
<dl class="py class">
<dt class="sig sig-object py" id="seqgra.comparator.fietablecomparator.FIETableComparator">
<em class="property"><span class="pre">class</span> </em><span class="sig-name descname"><span class="pre">FIETableComparator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">analysis_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">output_dir</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">model_labels</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></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="n"><span class="pre">silent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/seqgra/comparator/fietablecomparator.html#FIETableComparator"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#seqgra.comparator.fietablecomparator.FIETableComparator" title="Permalink to this definition"></a></dt>
Expand Down
10 changes: 7 additions & 3 deletions docs/seqgra.comparator.prcomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,13 @@

<div class="section" id="module-seqgra.comparator.prcomparator">
<span id="seqgra-comparator-prcomparator-module"></span><h1>seqgra.comparator.prcomparator module<a class="headerlink" href="#module-seqgra.comparator.prcomparator" title="Permalink to this headline"></a></h1>
<p>MIT - CSAIL - Gifford Lab - seqgra</p>
<p>ROC comparator: creates ROC curves of different models</p>
<p>&#64;author: Konstantin Krismer</p>
<p>Creates PR curves of different models</p>
<dl class="simple">
<dt>Classes:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="#seqgra.comparator.prcomparator.PRComparator" title="seqgra.comparator.prcomparator.PRComparator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PRComparator</span></code></a>: creates PR curves from various grammars and architectures</p></li>
</ul>
</dd>
</dl>
<dl class="py class">
<dt class="sig sig-object py" id="seqgra.comparator.prcomparator.PRComparator">
<em class="property"><span class="pre">class</span> </em><span class="sig-name descname"><span class="pre">PRComparator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">analysis_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">output_dir</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">model_labels</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></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="n"><span class="pre">silent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/seqgra/comparator/prcomparator.html#PRComparator"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#seqgra.comparator.prcomparator.PRComparator" title="Permalink to this definition"></a></dt>
Expand Down
10 changes: 7 additions & 3 deletions docs/seqgra.comparator.roccomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,13 @@

<div class="section" id="module-seqgra.comparator.roccomparator">
<span id="seqgra-comparator-roccomparator-module"></span><h1>seqgra.comparator.roccomparator module<a class="headerlink" href="#module-seqgra.comparator.roccomparator" title="Permalink to this headline"></a></h1>
<p>MIT - CSAIL - Gifford Lab - seqgra</p>
<p>ROC comparator: creates ROC curves of different models</p>
<p>&#64;author: Konstantin Krismer</p>
<p>Creates ROC curves of different models</p>
<dl class="simple">
<dt>Classes:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="#seqgra.comparator.roccomparator.ROCComparator" title="seqgra.comparator.roccomparator.ROCComparator"><code class="xref py py-class docutils literal notranslate"><span class="pre">ROCComparator</span></code></a>: creates ROC curves from various grammars and architectures</p></li>
</ul>
</dd>
</dl>
<dl class="py class">
<dt class="sig sig-object py" id="seqgra.comparator.roccomparator.ROCComparator">
<em class="property"><span class="pre">class</span> </em><span class="sig-name descname"><span class="pre">ROCComparator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">analysis_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">output_dir</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">model_labels</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></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="n"><span class="pre">silent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/seqgra/comparator/roccomparator.html#ROCComparator"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#seqgra.comparator.roccomparator.ROCComparator" title="Permalink to this definition"></a></dt>
Expand Down
8 changes: 7 additions & 1 deletion docs/seqgra.comparator.tablecomparator.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@

<div class="section" id="module-seqgra.comparator.tablecomparator">
<span id="seqgra-comparator-tablecomparator-module"></span><h1>seqgra.comparator.tablecomparator module<a class="headerlink" href="#module-seqgra.comparator.tablecomparator" title="Permalink to this headline"></a></h1>
<p>MIT - CSAIL - Gifford Lab - seqgra</p>
<p>Table Comparator for grammar and model information</p>
<dl class="simple">
<dt>Classes:</dt><dd><ul class="simple">
<li><p><a class="reference internal" href="#seqgra.comparator.tablecomparator.TableComparator" title="seqgra.comparator.tablecomparator.TableComparator"><code class="xref py py-class docutils literal notranslate"><span class="pre">TableComparator</span></code></a>: collects grammar and model information in text file</p></li>
</ul>
</dd>
</dl>
<dl class="py class">
<dt class="sig sig-object py" id="seqgra.comparator.tablecomparator.TableComparator">
<em class="property"><span class="pre">class</span> </em><span class="sig-name descname"><span class="pre">TableComparator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">analysis_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">output_dir</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">model_labels</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></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="n"><span class="pre">silent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/seqgra/comparator/tablecomparator.html#TableComparator"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#seqgra.comparator.tablecomparator.TableComparator" title="Permalink to this definition"></a></dt>
Expand Down
5 changes: 4 additions & 1 deletion seqgra/comparator/curvetablecomparator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
MIT - CSAIL - Gifford Lab - seqgra
Curve Table Comparator for PR and ROC curve information
Classes:
- :class:`~seqgra.comparator.curvetablecomparator.CurveTableComparator`: collects PR and ROC curve information in text file
"""
from typing import List, Optional
import os
Expand Down
5 changes: 4 additions & 1 deletion seqgra/comparator/fietablecomparator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
MIT - CSAIL - Gifford Lab - seqgra
Feature Importance Evaluator Table Comparator for feature importance measures
Classes:
- :class:`~seqgra.comparator.fietablecomparator.FIETableComparator`: collects feature importance evaluator information in text file
"""
from typing import List, Optional
import os
Expand Down
7 changes: 3 additions & 4 deletions seqgra/comparator/prcomparator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""
MIT - CSAIL - Gifford Lab - seqgra
Creates PR curves of different models
ROC comparator: creates ROC curves of different models
@author: Konstantin Krismer
Classes:
- :class:`~seqgra.comparator.prcomparator.PRComparator`: creates PR curves from various grammars and architectures
"""
from typing import List, Optional
import os
Expand Down
7 changes: 3 additions & 4 deletions seqgra/comparator/roccomparator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""
MIT - CSAIL - Gifford Lab - seqgra
Creates ROC curves of different models
ROC comparator: creates ROC curves of different models
@author: Konstantin Krismer
Classes:
- :class:`~seqgra.comparator.roccomparator.ROCComparator`: creates ROC curves from various grammars and architectures
"""
from typing import List, Optional
import os
Expand Down
5 changes: 4 additions & 1 deletion seqgra/comparator/tablecomparator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
MIT - CSAIL - Gifford Lab - seqgra
Table Comparator for grammar and model information
Classes:
- :class:`~seqgra.comparator.tablecomparator.TableComparator`: collects grammar and model information in text file
"""
from typing import List, Optional, Tuple
import os
Expand Down

0 comments on commit b1fb99f

Please sign in to comment.