This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
from os.path import isfile, join | |
from math import log10, ceil | |
def get_files(folder): | |
onlyfiles = [f for f in os.listdir(folder) if isfile(join(folder, f))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Create text files of different sizes with random content.""" | |
import random | |
import string | |
import logging | |
import sys | |
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Transform contents of | |
http://www.saai.macbay.de/saai/bestaende_aichele_manfred.html | |
into a new format so that it get on kit.edu | |
""" | |
from __future__ import unicode_literals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.io | |
import lasagne | |
import theano | |
import theano.tensor as T | |
import numpy as np | |
import time | |
import logging | |
logger = logging.getLogger('') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Neural Network to decide for numbers in 0..15 if they are divisble by | |
2, 3, both or none. | |
""" | |
import lasagne | |
from lasagne import layers | |
from lasagne.updates import nesterov_momentum | |
from nolearn.lasagne import NeuralNet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "multilabel.py", line 55, in <module> | |
nn_example() | |
File "multilabel.py", line 49, in nn_example | |
net1.fit(feature_vectors, labels) | |
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 321, in fit | |
self.train_loop(X, y) | |
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 328, in train_loop | |
X, y, self.eval_size) | |
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 448, in train_test_split |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.6 -- py-1.4.30 -- pytest-2.7.2 -- /usr/bin/python | |
cachedir: /home/moose/GitHub/Lasagne/.cache | |
rootdir: /home/moose/GitHub/Lasagne, inifile: setup.cfg | |
plugins: cov, cache, pep8 | |
collecting ... collected 720 items | |
lasagne/__init__.py PASSED | |
lasagne/conftest.py PASSED | |
lasagne/init.py PASSED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lasagne/tests/test_nonlinearities.py::TestNonlinearities::test_nonlinearity[softmax] FAILED | |
========================================================================= FAILURES ========================================================================== | |
_______________________________________________________ TestNonlinearities.test_nonlinearity[softmax] _______________________________________________________ | |
self = <test_nonlinearities.TestNonlinearities object at 0x7f7fba3b0850>, nonlinearity = 'softmax' | |
@pytest.mark.parametrize('nonlinearity', | |
['linear', 'rectify', | |
'leaky_rectify', 'sigmoid', |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test session starts ============================== | |
platform linux2 -- Python 2.7.6 -- py-1.4.30 -- pytest-2.7.2 -- /usr/bin/python | |
cachedir: /home/moose/GitHub/Lasagne/.cache | |
rootdir: /home/moose/GitHub/Lasagne, inifile: setup.cfg | |
plugins: cov, cache, pep8 | |
collecting ... collected 714 items | |
lasagne/__init__.py SKIPPED | |
lasagne/conftest.py SKIPPED | |
lasagne/init.py SKIPPED |
OlderNewer