Hi,
anyone ended up with a problem of this sort - NameError: global name 'pickle' is not defined
See below for details:
model = train_cascaded_model(model, train_x_data, train_y_data, options)
File "/udd/fgalassi/base.py", line 38, in train_cascaded_model
model[0].fit(X, Y)
File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 700, in fit
self.train_loop(X, y, epochs=epochs)
File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 839, in train_loop
func(self, self.trainhistory)
File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn_utils/hooks.py", line 60, in call
pickle.dump(train_history, f, -1)
NameError: global name 'pickle' is not defined
Hi, anyone ended up with a problem of this sort - NameError: global name 'pickle' is not defined See below for details:
model = train_cascaded_model(model, train_x_data, train_y_data, options) File "/udd/fgalassi/base.py", line 38, in train_cascaded_model model[0].fit(X, Y) File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 700, in fit self.train_loop(X, y, epochs=epochs) File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn/lasagne/base.py", line 839, in train_loop func(self, self.trainhistory) File "/udd/fgalassi/myenv/lib/python2.7/site-packages/nolearn_utils/hooks.py", line 60, in call pickle.dump(train_history, f, -1) NameError: global name 'pickle' is not defined
Thank you!