-
Notifications
You must be signed in to change notification settings - Fork 7
/
testing.py
31 lines (28 loc) · 803 Bytes
/
testing.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 6 15:51:42 2015
@author: s145706
"""
import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import sys
from datetime import datetime, timedelta
import importlib
import time
import cPickle as pickle
print ("loading data ...")
import data
print ("loading data completed ...")
import utils
if theano.config.device != "gpu":
with open(("metadata/alextestNO.pkl"), 'w') as f:
pickle.dump({
'config_name': "john",
}, f, pickle.HIGHEST_PROTOCOL)
else:
with open(("metadata/alextestYES.pkl"), 'w') as f:
pickle.dump({
'config_name': "john",
}, f, pickle.HIGHEST_PROTOCOL)