changed docs
following flake8, and making the notation of shape upper case.
@@ -72,20 +72,20 @@ def linear(x, W, b=None):
Args:
x (:class:`~chainer.Variable` or :class:`numpy.ndarray` or \
:class:`cupy.ndarray`): Input variable, which is a :math:`(s_B, s_1, \
- s_2, ..., s_n)`-shaped float array. Its first dimension :math:`(s_B)`
- is assumed to be the *minibatch dimension*. The other dimensions
- are treated as concatenated one dimension whose size must be
- :math:`(s_1 * ... * s_n = n)`.
+ s_2, ..., s_n)`-shaped float array. Its first dimension
+ :math:`(s_B)` is assumed to be the *minibatch dimension*. The
+ other dimensions are treated as concatenated one dimension whose
+ size must be :math:`(s_1 * ... * s_n = N)`.
W (:class:`~chainer.Variable` or :class:`numpy.ndarray` or \
- :class:`cupy.ndarray`): Weight variable of shape :math:`(m, n)`,
- where :math:`(n = s_1 * ... * s_n)`.
+ :class:`cupy.ndarray`): Weight variable of shape :math:`(M, N)`,
+ where :math:`(N = s_1 * ... * s_n)`.
b (:class:`~chainer.Variable` or :class:`numpy.ndarray` or \
:class:`cupy.ndarray`): Bias variable (optional) of shape
- :math:`(m,)`.
+ :math:`(M,)`.
Returns:
~chainer.Variable: Output variable. A float array with shape
- of :math:`(s_B, m)`.
+ of :math:`(s_B, M)`.
.. seealso:: :class:`~chainer.links.Linear`
