Questions tagged [nolearn]

nolearn is a Python package with utility functions for machine learning tasks.

nolearn is a package with utility functions for machine learning tasks.

Dependencies:

Resources:

43 questions
1
vote
1 answer

How to calculate F1-micro score using lasagne

import theano.tensor as T import numpy as np from nolearn.lasagne import NeuralNet def multilabel_objective(predictions, targets): epsilon = np.float32(1.0e-6) one = np.float32(1.0) pred = T.clip(predictions, epsilon, one - epsilon) …
Kun
  • 581
  • 1
  • 5
  • 27
1
vote
1 answer

Aggregate predictions with data augmentation in lasagne

I am working on the MNIST dataset and using data augmentation to train a neural network. I have a BatchIterator which randomly extracts from each picture a 24, 24 subimage, and uses it as input for the NN. As far as training is concerned,…
P. Camilleri
  • 12,664
  • 7
  • 41
  • 76
1
vote
2 answers

Making neural net to draw an image (aka Google's inceptionism) using nolearn\lasagne

Probably lots of people already saw this article by Google research: http://googleresearch.blogspot.ru/2015/06/inceptionism-going-deeper-into-neural.html It describes how Google team have made neural networks to actually draw pictures, like an…
0
votes
1 answer

How to store and read nolearn.lasagne NeuralNet models using pickle

How do I store the weights and biases in nolearn.lasagne NeuralNet model? From the documentation, I can't see how to access the NeuralNet's weights and biases and store them.
Kevin George
  • 119
  • 2
  • 13
0
votes
1 answer

Trying to use ConcatLayer with different shape inputs

I am trying to work with nolearn and use the ConcatLayer to combine multiple inputs. It works great as long as every input has the same type and shape. I have three different types of inputs that will eventually produce a single scalar output…
Beaker
  • 2,804
  • 5
  • 33
  • 54
0
votes
0 answers

Lasagne basic example not working?

I went through the install steps for lasagne, straight from the lasagne docs. And now I am running the following example: https://github.com/Lasagne/Lasagne/blob/master/examples/mnist.py The output expected is shown on the tutorial page of the…
0
votes
1 answer

Consistency testing results of NeuralNet nolearn

I am using NeuralNet class in nolearn library to do classification task. Here's the code: layers0 = [('input', InputLayer), ('hidden', DenseLayer), ('output', DenseLayer)] net0 = NeuralNet(layers=layers0, …
mdc
  • 53
  • 1
  • 8
0
votes
0 answers

nolearn/lasagne ImportError: No module named layers

I am getting an error when I try to run CNN program CNN using my own data set. Im using Python2.7 File "C:\Python27\Lib\site-packages\nolearn\lasagne.py", line 9, in from lasagne.layers import get_all_layers ImportError: No module named…
Alaska
  • 31
  • 2
  • 6
0
votes
1 answer

nolearn error when trying to run an AutoEncoder

I am trying to run a simple auto encoder using nolearn: import nolearn from nolearn.dbn import DBN from sklearn.cross_validation import train_test_split data=np.load('doc_user_matrix.npy') print (data.shape) #outputs: (10000,500) (x_train, x_test,…
Uri Goren
  • 13,386
  • 6
  • 58
  • 110
0
votes
1 answer

Multiple real inputs and multiple real outputs in a neural network

How can I train a perceptron where there are multiple input and output nodes and both are real-valued? I'm doing this because I want to train a neural network to predict the MFCCs given some data points (from the signal.) Here is an example data:…
fxhh
  • 47
  • 9
0
votes
1 answer

KeyError raised when training a neural network with Nolearn

I am trying to train a neural network on the iris dataset. I found a tutorial on neural networks using nolearn and the instructor used the mnist dataset. I tried to "mimick" the same algorithm but an error is raised. Here is the code: # Sklearn…
fxhh
  • 47
  • 9
0
votes
1 answer

Multi-class regression in nolearn?

I'm trying to build a Neural Network using nolearn that can do regression on multiple classes. For example: net = NeuralNet(layers=layers_s, input_shape=(None, 2048), l1_num_units=8000, l2_num_units=4000, …
B100
  • 1
  • 2
-1
votes
1 answer

Python: Deep neural networks

I am currently working on some project related to machine learning. I extracted some features from the object. So I train and test that features with NB, SVM and other classification algorithms and got result about 70 to 80 % When I train the same…
1 2
3