Skip to content

Commit

Permalink
Clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
vdumoulin committed Jan 26, 2016
1 parent 724f3ad commit db8e434
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ dataset in the order defined by the iteration scheme.

.. warning::

:class:`DataStream` assumes that there is only one consumer of its
epoch iterator. Re-using data streams at multiple places in the
code should be avoided, because it can lead to undefined behaviour.
:class:`DataStream` assumes that there is only one consumer per
stream. Re-using data streams at multiple places in the code
should be avoided, because it can lead to undefined behaviour.
Instead, users should instantiate one data stream per consumer.


Expand Down Expand Up @@ -514,7 +514,7 @@ preprocessing pipeline. The complete pipeline now looks like this:
.. warning::

Because of :class:`DataStream`'s assumption that there is only one
consumer of its epoch iterator, users should avoid instantiating
consumer per stream, users should avoid instantiating
multiple :class:`Transformer` instances using the same
:class:`DataStream` or :class:`Transformer` instance as input.

Expand Down
6 changes: 3 additions & 3 deletions fuel/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class DataStream(AbstractDataStream):
Notes
-----
:class:`DataStream` assumes that there is only one consumer of its
epoch iterator. Re-using data streams at multiple places in the
code should be avoided, because it can lead to undefined behaviour.
:class:`DataStream` assumes that there is only one consumer per
stream. Re-using data streams at multiple places in the code
should be avoided, because it can lead to undefined behaviour.
Instead, users should instantiate one data stream per consumer.
"""
Expand Down
2 changes: 1 addition & 1 deletion fuel/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Transformer(AbstractDataStream):
Notes
-----
Because of :class:`DataStream`'s assumption that there is only one
consumer of its epoch iterator, users should avoid instantiating
consumer per stream, users should avoid instantiating
multiple :class:`Transformer` instances using the same
:class:`DataStream` or :class:`Transformer` instance as input.
Expand Down

0 comments on commit db8e434

Please sign in to comment.