Skip to content

Commit

Permalink
mock import of tkinter in order for autoclass to work
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesVandewiele committed Sep 3, 2018
1 parent 9c5c4cb commit 5d64680
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Binary file modified gendis/docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified gendis/docs/_build/doctrees/index.doctree
Binary file not shown.
3 changes: 2 additions & 1 deletion gendis/docs/_build/html/_modules/gendis/genetic.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ <h1>Source code for gendis.genetic</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">pathos.multiprocessing</span> <span class="k">import</span> <span class="n">ProcessingPool</span> <span class="k">as</span> <span class="n">Pool</span>

<span class="c1"># ML</span>
<span class="kn">from</span> <span class="nn">sklearn.base</span> <span class="k">import</span> <span class="n">BaseEstimator</span><span class="p">,</span> <span class="n">TransformerMixin</span>
<span class="kn">from</span> <span class="nn">sklearn.utils</span> <span class="k">import</span> <span class="n">check_array</span>
<span class="kn">from</span> <span class="nn">sklearn.utils.validation</span> <span class="k">import</span> <span class="n">check_is_fitted</span>
<span class="kn">from</span> <span class="nn">sklearn.linear_model</span> <span class="k">import</span> <span class="n">LogisticRegression</span>
Expand All @@ -75,7 +76,7 @@ <h1>Source code for gendis.genetic</h1><div class="highlight"><pre>
<span class="c1"># Ignore warnings</span>
<span class="kn">import</span> <span class="nn">warnings</span><span class="p">;</span> <span class="n">warnings</span><span class="o">.</span><span class="n">filterwarnings</span><span class="p">(</span><span class="s1">&#39;ignore&#39;</span><span class="p">)</span>

<div class="viewcode-block" id="GeneticExtractor"><a class="viewcode-back" href="../../gendis.html#gendis.genetic.GeneticExtractor">[docs]</a><span class="k">class</span> <span class="nc">GeneticExtractor</span><span class="p">():</span>
<div class="viewcode-block" id="GeneticExtractor"><a class="viewcode-back" href="../../gendis.html#gendis.genetic.GeneticExtractor">[docs]</a><span class="k">class</span> <span class="nc">GeneticExtractor</span><span class="p">(</span><span class="n">BaseEstimator</span><span class="p">,</span> <span class="n">TransformerMixin</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Feature selection with genetic algorithm.</span>

<span class="sd"> Parameters</span>
Expand Down
2 changes: 1 addition & 1 deletion gendis/docs/_build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ corresponds to the distance to a certain shapelet, classifiers are able
to achieve state-of-the-art results on a plethora of datasets.

This repository contains an implementation of ``GENDIS``, an algorithm
that searched for a set of shapelets in a genetic fashion. The algorithm
that searches for a set of shapelets in a genetic fashion. The algorithm
is insensitive to its parameters (such as population size, crossover and
mutation probability, …) and can quickly extract a small set of
shapelets that is able to achieve predictive performances similar (or
Expand Down
2 changes: 1 addition & 1 deletion gendis/docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1>Welcome to GENDIS’s documentation!<a class="headerlink" href="#welcome-to-
corresponds to the distance to a certain shapelet, classifiers are able
to achieve state-of-the-art results on a plethora of datasets.</p>
<p>This repository contains an implementation of <code class="docutils literal notranslate"><span class="pre">GENDIS</span></code>, an algorithm
that searched for a set of shapelets in a genetic fashion. The algorithm
that searches for a set of shapelets in a genetic fashion. The algorithm
is insensitive to its parameters (such as population size, crossover and
mutation probability, …) and can quickly extract a small set of
shapelets that is able to achieve predictive performances similar (or
Expand Down
5 changes: 4 additions & 1 deletion gendis/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.autosummary'
'sphinx.ext.autosummary',
'sphinx.ext.autoclass'
]

autodoc_mock_imports = ['_tkinter']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down

0 comments on commit 5d64680

Please sign in to comment.