Questions tagged [lasagne]

Lasagne provides a high-level API for creating neural networks using Theano on the backend. Questions about lasagne do not need to also utilize the "theano" tag, unless the question is specifically about Lasagne-Theano integration or the Theano backend.

Lasagne is a Python package build around expressions for neural networks training. was designed as a high-level API on top of , with the intention of making rapid prototyping of neural network architectures easier. It is similar in spirit to , which is built as a high-level API on top of //, although the main difference is that Lasagne implements only one backend, allowing it to integrate more deeply with Theano features.

Resources

Resources and Teaching

Implementations of Network Architectures

204 questions
2
votes
3 answers

Realtime Data augmentation in Lasagne

I need to do realtime augmentation on my dataset for input to CNN, but i am having a really tough time finding suitable libraries for it. I have tried caffe but the DataTransform doesn't support many realtime augmentations like rotating etc. So for…
2
votes
1 answer

Nolearn raises an index error when running a classification, but not with regression

I'm stuck from several days ago with the problem I'm going to describe. I'm following the Daniel Nouri's tutorial about deep learning: http://danielnouri.org/notes/category/deep-learning/ and I tried to adapt his example to a classification dataset.…
ivallesp
  • 2,018
  • 1
  • 14
  • 21
2
votes
2 answers

Lasagne dropoutlayer does not utilize GPU efficiently

I am using theano and lasagne for a DNN speech enhancement project. I use a feed-forward network very similar to the mnist example in the lasagne documentation (/github.com/Lasagne/Lasagne/blob/master/examples/mnist.py). This network uses several…
2
votes
1 answer

Convolutional Neural Network accuracy with Lasagne (regression vs classification)

I have been playing with Lasagne for a while now for a binary classification problem using a Convolutional Neural Network. However, although I get okay(ish) results for training and validation loss, my validation and test accuracy is always constant…
mjacuse
  • 79
  • 1
  • 5
2
votes
0 answers

LSTMLayer produces NaN values even before training it

I'm currently trying to construct a LSTM network with Lasagne to predict the next step of noisy sequences. I first trained a stack of 2 LSTM layers for a while, but had to use an abysmally small learning rate (1e-6) because of divergence issues…
Nathan
  • 508
  • 4
  • 11
2
votes
1 answer

neural network with lasagne accuracy

I'm trying to construct a binary classifier with a neural network on some images using Lasagne. The training and validation loss fluctuate wildly (and do not settle) and the validation accuracy is always at 0%. Furthermore, the network always…
2
votes
1 answer

Lasagne/Theano wrong number of dimensions

Headed into Lasagne and Theano with a modified mnist.py (the primary example of Lasagne) to train a very simple XOR. import numpy as np import theano import theano.tensor as T import time import lasagne X_train = [[[[0, 0], [0, 1], [1, 0], [1,…
Augunrik
  • 1,866
  • 1
  • 21
  • 28
2
votes
1 answer

Neural network for more than one class not working

I am trying to use a Neural network for a classification problem. I have 6 possible classes and the same input may be in more than one class. The problem is that when I try to train one NN for each class, I set output_num_units = 1 and on train, I…
Adriano Almeida
  • 5,186
  • 5
  • 20
  • 28
2
votes
1 answer

Can I use multiple labels for one feature vector with Lasagne?

I have a semantic segmentation problem where it would be very nice if I could have multiple labels for one feature vector. So I have some parts of my data which belong to class 1, 2 AND 3 (and others which belong to only one class, some to no class…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
1
vote
0 answers

How to fix error when trying to use batch_norm function from lasagne library?

When i try to use batch_norm function from lasagne library: lasagne.layers.batch_norm(... this error appears: AttributeError: module 'lasagne.layers' has no attribute 'batch_norm' However I did all installs and updates which are necessary for that…
gh1222
  • 657
  • 2
  • 8
1
vote
0 answers

TypeError('No suitable SharedVariable constructor could be found.') Using lasagne and theano

Hi i'm currently learning coding with python and have been following a tutorial series which has helped me make the code i will show below. Apologies for it being so long but I cannot pinpoint the line of code which is causing this error. I have…
dan marsh
  • 11
  • 2
1
vote
0 answers

import theano as CPU(directly trying to open GPU)

I am trying to import theano, but it directly import GPU. I want to import theono on CPU. here is the error when i try to import…
Elliot
  • 13
  • 6
1
vote
0 answers

theano.function() throws up a long exception in Colab

I am using Google Colab to run the BinaryNet Neural Network implemented using theano by the authors of the original paper here: https://github.com/MatthieuCourbariaux/BinaryNet When I run the following line from /Train-time/mnist.py (line…
1
vote
1 answer

What does "size" mean in the kaggle Diabetic Retinopathy Detection 2nd place solution neural networks?

link: https://www.kaggle.com/c/diabetic-retinopathy-detection/discussion/15617 Github: https://github.com/sveitser/kaggle_diabetic Hello, I am new to CNNs and recently I am studying this solution. The author drew a table of the networks his group…
1
vote
1 answer

Convert Lasagne BatchNormLayer to Keras BatchNormalization layer

I want to convert a pretrained Lasagne (Theano) model to a Keras (Tensorflow) model, so all layers need to have the exact same configuration. From both documentations it is not clear to me how the parameters correspond. Let's assume a Lasagne…
dreamflasher
  • 1,387
  • 15
  • 22