Skip to content

The meaning of Params.BN_ACTIVATION #1

Description

@thkfly

We noticed that “BN_ACTIVATION = False # Controls the order of non-linearity, if True the non-linearity is performed after the BN” in the params.py.
However, I suspect that there might be some abuse of the arg for:

nonlinearity=lasagne.nonlinearities.LeakyRectify(
      Params.LEAKINESS) if not Params.BN_ACTIVATION else lasagne.nonlinearities.identity,

on line 171, 172 of file tied_dropout_iterative_model.py
and

model.append(BatchNormalizationLayer(model[-1],
         nonlinearity=lasagne.nonlinearities.LeakyRectify(
         Params.LEAKINESS) if Params.BN_ACTIVATION else lasagne.nonlinearities.identity))

on line 179 of the same file

The "Params.BN_ACTIVATION" has opposite behavior

I might thought you force open lasagne.nonlinearities.LeakyRectify as active layer

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions