This file contains hidden or 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
diff --git a/nolearn/lasagne.py b/nolearn/lasagne.py | |
index 5c2c64c..86f2e7a 100644 | |
--- a/nolearn/lasagne.py | |
+++ b/nolearn/lasagne.py | |
@@ -22,7 +22,21 @@ from theano import tensor as T | |
class _list(list): | |
- pass | |
+ def set_params(self, **params): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 os | |
os.environ['PYLEARN2_DATA_PATH'] = '/home/ubuntu/data' | |
import numpy as np | |
import cv2 | |
from pylearn2.config import yaml_parse | |
from pylearn2.datasets.mnist import MNIST | |
from pylearn2.datasets import preprocessing |
This file contains hidden or 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 os | |
os.environ['THEANO_FLAGS']="optimizer_including=conv_fft_valid:conv_fft_full" | |
from pylearn2.config import yaml_parse | |
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix | |
import numpy as np | |
train_str = """!obj:pylearn2.train.Train { | |
dataset: &train !import '__main__ .train_set', |
This file contains hidden or 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 os | |
os.environ['THEANO_FLAGS']="optimizer_including=conv_fft_valid:conv_fft_full" | |
from pylearn2.config import yaml_parse | |
from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix | |
import numpy as np | |
train_str = """!obj:pylearn2.train.Train { | |
dataset: &train !import '__main__ .train_set', |
This file contains hidden or 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
[default] | |
library_dirs = /usr/local/lib | |
[atlas] | |
atlas_libs = openblas | |
library_dirs = /usr/local/lib | |
[lapack] | |
lapack_libs = openblas | |
library_dirs = /usr/local/lib | |
[openblas] | |
libraries = openblas |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
def get_state_v1(state): | |
url = make_url(state) | |
IN = load_gif_url(url) | |
#Drop the text at the top | |
IN = IN[150:] | |
#Convert 3 color channels to 1 | |
IN_bw = get_bw(IN) |