Lasagne / Lasagne

Lightweight library to build and train neural networks in Theano

Home Page:http://lasagne.readthedocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lasagne not working properly

gitvicky opened this issue · comments

While defining the layers of my network I am getting this error.

the_layers = lasagne.layers.DenseLayer(the_layers, num_units=64, nonlinearity=lasagne.layers.nonlinearities.rectify)

AttributeError: 'module' object has no attribute 'nonlinearities'

I am working on Python 2.7, Theano 0.8.0, Lasagne 1.0, nolearn 0.6

It should be lasagne.nonlinearities, not lasagne.layers.nonlinearities. See the documentation: http://lasagne.readthedocs.io/en/latest/modules/nonlinearities.html