View image_filter.py
#!/usr/bin/env python
"""Playing with image filters."""
import scipy.misc
import scipy.ndimage
import numpy as np
# Load an example image
# Use scipy.ndimage.imread(file_name, mode='L') if you have your own
View distrib.py
#!/usr/bin/env python
"""Display information about exams."""
import numpy
import matplotlib.pyplot as plt
def main():
dist = []
View create_mask.py
#!/usr/bin/env python
"""Create a single mask image for the EndoVis Robotic Task."""
import os
import scipy.misc
import scipy.ndimage
import numpy as np
View polyglot.py
#>++++++++++[
# Python code written by Martin Thoma
#>++++++++
#>++++++++++
# Looping
#>+++++++++++
def looping(i):
""">++++++++++++ Do some crazy stuff x Written by Martin Thoma """
View optics.py
# Copyright (c) 2012, Ryan Gomba
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
View active_window.py
#!/usr/bin/env python
"""Find the currently active window."""
import logging
import sys
logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
level=logging.DEBUG,
stream=sys.stdout)
View get_mnist_data_tf.py
"""Functions for downloading and reading MNIST data."""
from __future__ import print_function
import gzip
import os
import urllib
import numpy
SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/'
def maybe_download(filename, work_directory):
View pca.py
#!/usr/bin/env python
"""Sample script to visualize PCA."""
import numpy
from numpy.random import multivariate_normal, seed
def generate_data(n=1000):
"""Generate n datapoints of a multivariate gaussian distribution.
View pytest.results-runslow.txt
This file has been truncated, but you can view the full file.
============================= 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
View mnist_conv_dnn-error.log
$ python mnist_conv_dnn.py
Using gpu device 0: GeForce GTX TITAN Black
Loading data...
Building model and compiling functions...
/usr/local/lib/python2.7/dist-packages/Lasagne-0.1.dev-py2.7.egg/lasagne/init.py:86: UserWarning: The uniform initializer no longer uses Glorot et al.'s approach to determine the bounds, but defaults to the range (-0.01, 0.01) instead. Please use the new GlorotUniform initializer to get the old behavior. GlorotUniform is now the default for all layers.
warnings.warn("The uniform initializer no longer uses Glorot et al.'s "
/usr/local/lib/python2.7/dist-packages/Lasagne-0.1.dev-py2.7.egg/lasagne/layers/helper.py:69: UserWarning: get_all_layers() has been changed to return layers in topological order. The former implementation is still available as get_all_layers_old(), but will be removed before the first release of Lasagne. To ignore this warning, use `warnings.filterwarnings('ignore', '.*topo.*')`.
warnings.warn("get_all_layers() has been changed to return layers in "
Traceback