diff --git a/conv_net_classes.py b/conv_net_classes.py index 4690412..1845466 100644 --- a/conv_net_classes.py +++ b/conv_net_classes.py @@ -13,7 +13,8 @@ import theano.tensor.shared_randomstreams import theano import theano.tensor as T -from theano.tensor.signal import downsample +# from theano.tensor.signal import downsample +from theano.tensor.signal import pool from theano.tensor.nnet import conv def ReLU(x): diff --git a/conv_net_train.py b/conv_net_train.py index 9878d74..94d6b4d 100644 --- a/conv_net_train.py +++ b/conv_net_train.py @@ -435,7 +435,7 @@ def make_idx_data_cv(revs, word_idx_map, mairesse, charged_words, cv, per_attr=0 r = range(0,10) - ofile=file('perf_output_'+str(attr)+'.txt','w') + ofile=open('perf_output_'+str(attr)+'.txt','w') charged_words=[]