Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve MLPBN #171

Merged
merged 6 commits into from
Nov 15, 2017
Merged

Improve MLPBN #171

merged 6 commits into from
Nov 15, 2017

Conversation

muupan
Copy link
Member

@muupan muupan commented Nov 14, 2017

  • Add nonlinearity and last_wscale argument to MLPBN
  • Add tests for MLPBN

The tests for MLPBN are actually not checking each configuration is applied or not, but it should be better than having no tests.

to inputs.
normalize_output (bool): If set to True, Batch Normalization is applied
to outputs.
nonlinearity (callable): Nonlinearity between layers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most cases, nonlinearity is a chainer.Function, and it cannot be a chainer.Link. Could you make the followings clear?

  • nonlinearity has no parameters;
  • nonlinearity, called with one argument of chainer.Variable, returns chainer.Variable of the same shape as the input.


import unittest

import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other files, numpy and chainer are in the same group of the import order.

@toslunar
Copy link
Member

LGTM

@muupan muupan merged commit 9b8c110 into chainer:master Nov 15, 2017
@muupan muupan added this to the v0.3 milestone Nov 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants