Skip to content

Commit

Permalink
Mantéïa
Browse files Browse the repository at this point in the history
  • Loading branch information
ym001 committed May 24, 2020
1 parent c16e07a commit 2b147b4
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 8 deletions.
13 changes: 8 additions & 5 deletions Manteia/Visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ def plot_boxplot(self,labels,longueur_des_doc,ylim=200):
plt.xticks(rotation=90)
sns.boxplot(x='Labels', y='Length of document', data=data, palette='Set2',notch=True,showfliers=True, showmeans=True, meanline=True)
ax.set_ylim(0, ylim)
if self.show:
plt.show()
if self.save:
path=os.path.join(self.path,'boxplot.png')
plt.savefig(path)
if self.show:
plt.show()


def plot_train(self,loss,accuracy,granularity=None):
if granularity is not None:
Expand All @@ -142,11 +143,13 @@ def plot_train(self,loss,accuracy,granularity=None):
ax2.set_ylabel('Loss', color='b')

#plt.legend(['train'], loc='upper left')
if self.show:
plt.show()
if self.save:
path=os.path.join(self.path,'train.png')
plt.savefig(path)
plt.savefig(path, dpi=300)
print('test')
if self.show:
plt.show()




2 changes: 1 addition & 1 deletion Manteia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
reminiscent.
"""

__version__ = "0.0.25"
__version__ = "0.0.26"


from Manteia import Classification
Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/html/_images/boxplot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_build/html/_images/train.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/_build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Designing your neural network to natural language processing. Deep learning has
, construction model (Bert, Roberta, Distilbert, XLNet, Albert, GPT, GPT2), quality measurement training and finally visualization
of your results on several dataset ( 20newsgroups, Agnews Amazon Review Full, Amazon Review Polarity, DBPedia, PubMed_20k_RCT, Short_Jokes, Sogou News, SST-2, SST-5, Tweeter Airline Sentiment, Yahoo! Answers, Yelp Review Full, Yelp Review Polarity).

.. _Train your neural network: https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification_visualisation.ipynb
.. _Explore your data: https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification1.ipynb

+---------------------------------+------------------------------+
| `Train your neural network`_. | `Explore your data`_. |
+=================================+==============================+
| .. image:: images/train.png | .. image:: images/boxplot.png|
+---------------------------------+------------------------------+

Classes
=======

Expand Down
18 changes: 18 additions & 0 deletions docs/_build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,24 @@ <h1>Simple Documentation Tutorial : Mantéïa<a class="headerlink" href="#simple
<p>Designing your neural network to natural language processing. Deep learning has been used extensively in natural language processing (NLP) because it is well suited for learning the complex underlying structure of a sentence and semantic proximity of various words. Data cleaning
, construction model (Bert, Roberta, Distilbert, XLNet, Albert, GPT, GPT2), quality measurement training and finally visualization
of your results on several dataset ( 20newsgroups, Agnews Amazon Review Full, Amazon Review Polarity, DBPedia, PubMed_20k_RCT, Short_Jokes, Sogou News, SST-2, SST-5, Tweeter Airline Sentiment, Yahoo! Answers, Yelp Review Full, Yelp Review Polarity).</p>
<table class="docutils align-default">
<colgroup>
<col style="width: 52%" />
<col style="width: 48%" />
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p><a class="reference external" href="https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification_visualisation.ipynb">Train your neural network</a>.</p></th>
<th class="head"><p><a class="reference external" href="https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification1.ipynb">Explore your data</a>.</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><img alt="_images/train.png" src="_images/train.png" />
</td>
<td><img alt="_images/boxplot.png" src="_images/boxplot.png" />
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="classes">
<h1>Classes<a class="headerlink" href="#classes" title="Permalink to this headline"></a></h1>
Expand Down
2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

Binary file added docs/images/boxplot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/train.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ Designing your neural network to natural language processing. Deep learning has
, construction model (Bert, Roberta, Distilbert, XLNet, Albert, GPT, GPT2), quality measurement training and finally visualization
of your results on several dataset ( 20newsgroups, Agnews Amazon Review Full, Amazon Review Polarity, DBPedia, PubMed_20k_RCT, Short_Jokes, Sogou News, SST-2, SST-5, Tweeter Airline Sentiment, Yahoo! Answers, Yelp Review Full, Yelp Review Polarity).

.. _Train your neural network: https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification_visualisation.ipynb
.. _Explore your data: https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_classification1.ipynb

+---------------------------------+------------------------------+
| `Train your neural network`_. | `Explore your data`_. |
+=================================+==============================+
| .. image:: images/train.png | .. image:: images/boxplot.png|
+---------------------------------+------------------------------+

Classes
=======

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
name='Manteia',

# version=Manteia.__version__,
version="0.0.25",
version="0.0.26",

packages=find_packages(),

Expand Down

0 comments on commit 2b147b4

Please sign in to comment.