casperkaae / parmesan

Variational and semi-supervised neural network toppings for Lasagne
Other
208 stars 31 forks source link

Add nonlin to sample layers #24

Closed skaae closed 8 years ago

skaae commented 8 years ago

Can we make the exp nonlinearity optional in the sample layers by adding a nonlinearity keyword. That would allow for softplus etc.

add the argument:

nonlinearity=lambda x: T.exp(0.5*x)

casperkaae commented 8 years ago

Yes - I'll at that option to the sample layer

closed via commit 4420361015617b8b565bcca15b60e5862a7067cc and 06a60e13f72970b6ba06e724728b1a6107f30147