Skip to content

Commit

Permalink
Improve the docstring of MLPBN
Browse files Browse the repository at this point in the history
  • Loading branch information
muupan committed Nov 15, 2017
1 parent f1fb2f0 commit 4119eb0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion chainerrl/links/mlp_bn.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,19 @@ def __call__(self, x):


class MLPBN(chainer.Chain):
"""Multi-Layer Perceptron with BatchNormalization."""
"""Multi-Layer Perceptron with Batch Normalization.
Args:
in_size (int): Input size.
out_size (int): Output size.
hidden_sizes (list of ints): Sizes of hidden channels.
normalize_input (bool): If set to True, Batch Normalization is applied
to inputs.
normalize_output (bool): If set to True, Batch Normalization is applied
to outputs.
nonlinearity (callable): Nonlinearity between layers.
last_wscale (float): Scale of weight initialization of the last layer.
"""

def __init__(self, in_size, out_size, hidden_sizes, normalize_input=True,
normalize_output=False, nonlinearity=F.relu, last_wscale=1):
Expand Down

0 comments on commit 4119eb0

Please sign in to comment.