Skip to content

Commit 8320f4b

Browse files
authored
Version update - 0.5.0
Version update - 0.5.0
2 parents 4ab2576 + 0bc2e00 commit 8320f4b

12 files changed

Lines changed: 99 additions & 278 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ jobs:
5656
source venv/bin/activate
5757
pytest -s --cov=tavolo tests/
5858
codecov
59+
test-3.8:
60+
<<: *test-template
61+
docker:
62+
- image: circleci/python:3.6
5963
test-3.6:
6064
<<: *test-template
6165
docker:

README.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
------------
88

9-
.. image:: https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7-blue.svg
9+
.. image:: https://img.shields.io/badge/python-3.5%20%7C%203.6%20%7C%203.7%20%7C%203.8-blue.svg
1010
:alt: Supported Python versions
1111

12-
.. image:: https://img.shields.io/badge/tensorflow-2.0.0--rc0-orange.svg
12+
.. image:: https://img.shields.io/badge/tensorflow-2.0-orange.svg
1313
:alt: Supported TensorFlow versions
1414

1515
.. image:: https://codecov.io/gh/eliorc/tavolo/branch/master/graph/badge.svg
@@ -27,8 +27,7 @@ Tavolo
2727
| You see, the deep learning world is moving fast, and new ideas keep on coming.
2828
| tavolo gathers implementations of these useful ideas from the community (by contribution, from `Kaggle`_ etc.)
2929
and makes them accessible in a single PyPI hosted package that compliments the `tf.keras`_ module.
30-
|
31-
| *Notice: tavolo is developed for TensorFlow 2.0 (right now on pre-release), most modules will work with earlier versions but some won't (like LayerNormalization)*
30+
3231

3332
Documentation
3433
-------------
@@ -41,8 +40,8 @@ Showcase
4140
--------
4241

4342
| tavolo's API is straightforward and adopting its modules is as easy as it gets.
44-
| In tavolo, you'll find implementations for basic layers like `LayerNormalization`_ to complex modules like the Transformer's
45-
`MultiHeadedSelfAttention`_. You'll also find non-layer implementations that can ease development, like the `LearningRateFinder`_.
43+
| In tavolo, you'll find implementations for basic layers like `PositionalEncoding`_ to complex modules like the Transformer's
44+
`MultiHeadedAttention`_. You'll also find non-layer implementations that can ease development, like the `LearningRateFinder`_.
4645
| For example, if we wanted to add head a multi-headed attention mechanism into our model and look for the optimal learning rate, it would look something like:
4746
4847
.. code-block:: python3
@@ -52,7 +51,7 @@ Showcase
5251
5352
model = tf.keras.Sequential([
5453
tf.keras.layers.Embedding(input_dim=vocab_size, output_dim=embedding_size, input_length=max_len),
55-
tvl.seq2seq.MultiHeadedSelfAttention(n_heads=8), # <--- Add self attention
54+
tvl.seq2seq.MultiHeadedAttention(n_heads=8), # <--- Add self attention
5655
tf.keras.layers.LSTM(n_lstm_units, return_sequences=True),
5756
tf.keras.layers.Dense(n_hidden_units, activation='relu'),
5857
tf.keras.layers.Dense(1, activation='sigmoid')])
@@ -70,8 +69,8 @@ Showcase
7069
.. _`TensorFlow`: https://www.tensorflow.org/
7170
.. _`Kaggle`: https://www.kaggle.com
7271
.. _`tf.keras`: https://www.tensorflow.org/guide/keras
73-
.. _`LayerNormalization`: https://tavolo.readthedocs.io/en/latest/normalization.html#layer-normalization
74-
.. _`MultiHeadedSelfAttention`: https://tavolo.readthedocs.io/en/latest/seq2seq.html#multi-headed-self-attention
72+
.. _`PositionalEncoding`: https://tavolo.readthedocs.io/en/latest/embeddings.html#module-embeddings.PositionalEncoding
73+
.. _`MultiHeadedAttention`: https://tavolo.readthedocs.io/en/latest/seq2seq.html#multi-headed-self-attention
7574
.. _`LearningRateFinder`: https://tavolo.readthedocs.io/en/latest/learning.html#learning-rate-finder
7675

7776

docs/source/index.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ Welcome to tavolo's documentation!
99
| tavolo gathers implementations of these useful ideas from the community (by contribution, from `Kaggle`_ etc.)
1010
and makes them accessible in a single PyPI hosted package that compliments the `tf.keras`_ module.
1111
12-
.. warning::
13-
14-
tavolo is developed for TensorFlow 2.0 (right now on pre-release), most modules will work with earlier versions but some won't (like LayerNormalization)
1512

1613
Showcase
1714
--------
1815

1916
| tavolo's API is straightforward and adopting its modules is as easy as it gets.
20-
| In tavolo, you'll find implementations for basic layers like :ref:`layer_normalization` to complex modules like the Transformer's
21-
:ref:`multi_headed_self_attention`. You'll also find non-layer implementations that can ease development, like the :ref:`learning_rate_finder`.
17+
| In tavolo, you'll find implementations for basic layers like :ref:`positional_encoding` to complex modules like the Transformer's
18+
:ref:`multi_headed_attention`. You'll also find non-layer implementations that can ease development, like the :ref:`learning_rate_finder`.
2219
| For example, if we wanted to add head a multi-headed attention mechanism into our model and look for the optimal learning rate, it would look something like:
2320
2421
.. code-block:: python3
@@ -28,7 +25,7 @@ Showcase
2825
2926
model = tf.keras.Sequential([
3027
tf.keras.layers.Embedding(input_dim=vocab_size, output_dim=embedding_size, input_length=max_len),
31-
tvl.seq2seq.MultiHeadedSelfAttention(n_heads=8), # <--- Add self attention
28+
tvl.seq2seq.MultiHeadedAttention(n_heads=8), # <--- Add self attention
3229
tf.keras.layers.LSTM(n_lstm_units, return_sequences=True),
3330
tf.keras.layers.Dense(n_hidden_units, activation='relu'),
3431
tf.keras.layers.Dense(1, activation='sigmoid')])
@@ -59,7 +56,6 @@ Showcase
5956

6057
embeddings
6158
learning
62-
normalization
6359
seq2seq
6460
seq2vec
6561

docs/source/normalization.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/source/seq2seq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Layers mapping sequences to sequences
1010

1111
-------
1212

13-
.. _`multi_headed_self_attention`:
13+
.. _`multi_headed_attention`:
1414

15-
``MultiHeadedSelfAttention``
15+
``MultiHeadedAttention``
1616
++++++++++++++++++++++++++++
1717

18-
.. automodule:: seq2seq.MultiHeadedSelfAttention
18+
.. automodule:: seq2seq.MultiHeadedAttention

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup
22

3-
VERSION = '0.4.1'
3+
VERSION = '0.5.0'
44

55
setup(name='tavolo',
66
version=VERSION,

tavolo/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
__name__ = 'tavolo'
2-
__version__ = '0.4.1'
2+
__version__ = '0.5.0'
33

44
from . import embeddings
5-
from . import normalization
65
from . import seq2vec
76
from . import seq2seq
87
from . import learning

tavolo/normalization.py

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)