Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Jan 14, 2015
1 parent c9289ec commit 72d8d6b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions blocks/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def reset(self):
self.data_stream.reset()

def get_epoch_iterator(self, **kwargs):
"""Get an epoch iterator for the wrapped data set
"""Get an epoch iterator for the wrapped data set.
Notes
-----
Expand Down Expand Up @@ -370,7 +370,7 @@ class DataIterator(six.Iterator):
An iterator which returns the request to pass to the data stream
for each step.
"""
"""
def __init__(self, data_stream, request_iterator=None, as_dict=False):
update_instance(self, locals())

Expand Down
2 changes: 1 addition & 1 deletion blocks/datasets/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class IterationScheme(object):
"""An iteration scheme
"""An iteration scheme.
Iteration schemes provide a dataset-agnostic iteration scheme, such as
sequential batches, shuffled batches, etc. for datasets that choose to
Expand Down
14 changes: 4 additions & 10 deletions blocks/monitoring/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ class AggregationScheme(object):

@abstractmethod
def get_aggregator(self):
"""Return a new Aggregator for this variable.
"""
"""Return a new Aggregator for this variable."""
pass


Expand Down Expand Up @@ -223,9 +221,7 @@ def readout_fun():
self._readout_fun = readout_fun

def _initialize_computation(self):
"""Initialize the aggragators to process a dataset.
"""
"""Initialize the aggragators to process a dataset."""
self._initialized = True
if self._initialize_fun is not None:
self._initialize_fun()
Expand All @@ -245,7 +241,7 @@ def _readout_expressions(self):
return self._readout_fun()

def evaluate(self, data_set_view):
"""Compute the expressions over an iterable data set
"""Compute the expressions over an iterable data set.
Parameters
----------
Expand Down Expand Up @@ -307,9 +303,7 @@ def __init__(self, monitored_variables):

@property
def updates(self):
"""Updates that have to be called for each minibatch.
"""
"""Updates that have to be called for each minibatch."""
return self._updates

def read_expressions(self):
Expand Down

0 comments on commit 72d8d6b

Please sign in to comment.