From 1f58c92ffe26b69ceed082814f6ec1287e20b3b1 Mon Sep 17 00:00:00 2001 From: Jindra Helcl Date: Sat, 22 Dec 2018 20:43:45 +0100 Subject: [PATCH] addressing review - fix typos, enhance docs --- neuralmonkey/experiment.py | 6 +++++- neuralmonkey/readers/image_reader.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/neuralmonkey/experiment.py b/neuralmonkey/experiment.py index 72eb2bde9..4b65b1f68 100644 --- a/neuralmonkey/experiment.py +++ b/neuralmonkey/experiment.py @@ -420,7 +420,11 @@ def _check_unused_initializers(self) -> None: "variables: " + ", ".join(unused_initializers)) def visualize_embeddings(self) -> None: - """Visualize embeddings of sequences in `main.visualize_embeddings`.""" + """Insert visualization of embeddings in TensorBoard. + + Visualize the embeddings of `EmbeddedFactorSequence` objects specified + in the `main.visualize_embeddings` config attribute. + """ tb_projector = projector.ProjectorConfig() for sequence in self.model.visualize_embeddings: diff --git a/neuralmonkey/readers/image_reader.py b/neuralmonkey/readers/image_reader.py index 2b4231e93..1eab16932 100644 --- a/neuralmonkey/readers/image_reader.py +++ b/neuralmonkey/readers/image_reader.py @@ -23,7 +23,7 @@ def image_reader(pad_w: int, Args: pad_w: Width to which the images will be padded/cropped/resized. - pad_h: Height to with the images will be padded/cropped/resized. + pad_h: Height to which the images will be padded/cropped/resized. channels: Number of channels in each image (default 3 for RGB) prefix: Prefix of the paths that are listed in a image files. rescale_w: If true, image is rescaled to have given width. It is