Skip to content

Commit

Permalink
Merge 1f4c0ca into 391e2c0
Browse files Browse the repository at this point in the history
  • Loading branch information
zchenry committed Aug 15, 2017
2 parents 391e2c0 + 1f4c0ca commit a1d74fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chainer/functions/loss/ctc.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def connectionist_temporal_classification(
of sequence labeling where the alignment between the inputs and target is
unknown. See also [Graves2012]_
The output is a varialbe whose value depends on the value of
The output is a variable whose value depends on the value of
the option ``reduce``. If it is ``'no'``, it holds the samplewise
loss values. If it is ``'mean'``, it takes the mean of loss values.
Expand All @@ -291,7 +291,7 @@ def connectionist_temporal_classification(
Returns:
~chainer.Variable:
A variable holding a scalar value of the CTC loss.
If ``reduce`` is ``'no'``, the output varialbe holds array
If ``reduce`` is ``'no'``, the output variable holds array
whose shape is `(B,)` where `B` is the number of samples.
If it is ``'mean'``, it holds a scalar.
Expand Down
6 changes: 3 additions & 3 deletions chainer/functions/loss/vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def gaussian_nll(x, mean, ln_var, reduce='sum'):
Given two variable ``mean`` representing :math:`\\mu` and ``ln_var``
representing :math:`\\log(\\sigma^2)`, this function computes in
elementwise manner the negative log-likelihood of :math:`x` on a
Gaussianx distribution :math:`N(\\mu, S)`,
Gaussian distribution :math:`N(\\mu, S)`,
.. math::
Expand All @@ -127,7 +127,7 @@ def gaussian_nll(x, mean, ln_var, reduce='sum'):
where :math:`D` is a dimension of :math:`x` and :math:`S` is a diagonal
matrix where :math:`S_{ii} = \\sigma_i^2`.
The output is a varialbe whose value depends on the value of
The output is a variable whose value depends on the value of
the option ``reduce``. If it is ``'no'``, it holds the elementwise
loss values. If it is ``'sum'``, loss values are summed up.
Expand All @@ -146,7 +146,7 @@ def gaussian_nll(x, mean, ln_var, reduce='sum'):
Returns:
~chainer.Variable:
A variable representing the negative log-likelihood.
If ``reduce`` is ``'no'``, the output varialbe holds array
If ``reduce`` is ``'no'``, the output variable holds array
whose shape is same as one of (hence both of) input variables.
If it is ``'sum'``, the output variable holds a scalar value.
Expand Down

0 comments on commit a1d74fe

Please sign in to comment.