Skip to content

Commit

Permalink
Fix typos (keras-team#5753)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzw0301 authored and fchollet committed Mar 15, 2017
1 parent 36e526e commit 0cc52cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions keras/backend/tensorflow_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def random_uniform_variable(shape, low, high, dtype=None,
# Arguments
shape: Tuple of integers, shape of returned Keras variable.
low: Float, lower boundary of the output inteval.
low: Float, lower boundary of the output interval.
high: Float, upper boundary of the output interval.
dtype: String, dtype of returned Keras variable.
name: String, name of returned Keras variable.
Expand Down Expand Up @@ -1906,7 +1906,7 @@ def one_hot(indices, num_classes):


def reverse(x, axes):
"""Reverse a tensor along the the specified axes.
"""Reverse a tensor along the specified axes.
# Arguments
x: Tensor to reverse.
Expand Down Expand Up @@ -3153,7 +3153,7 @@ def random_binomial(shape, p=0.0, dtype=None, seed=None):
# Arguments
shape: A tuple of integers, the shape of tensor to create.
p: A float, `0. <= p <= 1`, probability of binomlai distribution.
p: A float, `0. <= p <= 1`, probability of binomial distribution.
dtype: String, dtype of returned tensor.
seed: Integer, random seed.
Expand Down
2 changes: 1 addition & 1 deletion keras/backend/theano_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def one_hot(indices, num_classes):


def reverse(x, axes):
"""Reverse a tensor along the the specified axes
"""Reverse a tensor along the specified axes
"""
if isinstance(axes, int):
axes = [axes]
Expand Down
2 changes: 1 addition & 1 deletion keras/engine/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ def train_on_batch(self, x, y,
In this case you should make sure to specify
sample_weight_mode="temporal" in compile().
class_weight: optional dictionary mapping
lass indices (integers) to
class indices (integers) to
a weight (float) to apply to the model's loss for the samples
from this class during training.
This can be useful to tell the model to "pay more attention" to
Expand Down
2 changes: 1 addition & 1 deletion keras/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Masking(Layer):
For each timestep in the input tensor (dimension #1 in the tensor),
if all values in the input tensor at that timestep
are equal to `mask_value`, then the timestep will masked (skipped)
are equal to `mask_value`, then the timestep will be masked (skipped)
in all downstream layers (as long as they support masking).
If any downstream layer does not support masking yet receives such
Expand Down

0 comments on commit 0cc52cf

Please sign in to comment.