---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-3-cba3ce1231e9> in <module>()
2 (train_x, train_y), (test_x, test_y) = imdb.load_data(num_words=5000)
3 rnn = RNN(train_x, train_y, test_x, test_y)
----> 4 rnn.train()
5 rnn.evaluate()
<ipython-input-2-1d4cb74f63b0> in train(self)
42 '''
43 # TODO: fit in data to train your model
---> 44 self.model.fit(self.train_x, self.train_y, validation_data=(self.test_x, self.test_y), epochs=self.epochs, batch_size=self.batch_size)
45
46
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/keras/models.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, **kwargs)
861 class_weight=class_weight,
862 sample_weight=sample_weight,
--> 863 initial_epoch=initial_epoch)
864
865 def evaluate(self, x, y, batch_size=32, verbose=1,
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, **kwargs)
1428 val_f=val_f, val_ins=val_ins, shuffle=shuffle,
1429 callback_metrics=callback_metrics,
-> 1430 initial_epoch=initial_epoch)
1431
1432 def evaluate(self, x, y, batch_size=32, verbose=1, sample_weight=None):
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/keras/engine/training.py in _fit_loop(self, f, ins, out_labels, batch_size, epochs, verbose, callbacks, val_f, val_ins, shuffle, callback_metrics, initial_epoch)
1077 batch_logs['size'] = len(batch_ids)
1078 callbacks.on_batch_begin(batch_index, batch_logs)
-> 1079 outs = f(ins_batch)
1080 if not isinstance(outs, list):
1081 outs = [outs]
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/keras/backend/theano_backend.py in __call__(self, inputs)
1195 def __call__(self, inputs):
1196 assert isinstance(inputs, (list, tuple))
-> 1197 return self.function(*inputs)
1198
1199
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/theano/compile/function_module.py in __call__(self, *args, **kwargs)
882 try:
883 outputs =\
--> 884 self.fn() if output_subset is None else\
885 self.fn(output_subset=output_subset)
886 except Exception:
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/theano/scan_module/scan_op.py in rval(p, i, o, n, allow_gc)
987 def rval(p=p, i=node_input_storage, o=node_output_storage, n=node,
988 allow_gc=allow_gc):
--> 989 r = p(n, [x[0] for x in i], o)
990 for o in node.outputs:
991 compute_map[o][0] = True
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/theano/scan_module/scan_op.py in p(node, args, outs)
976 args,
977 outs,
--> 978 self, node)
979 except (ImportError, theano.gof.cmodule.MissingGXX):
980 p = self.execute
theano/scan_module/scan_perform.pyx in theano.scan_module.scan_perform.perform (/Users/brianmckean/.theano/compiledir_Darwin-16.7.0-x86_64-i386-64bit-i386-3.6.2-64/scan_perform/mod.cpp:6946)()
~/anaconda2/envs/hwenv/lib/python3.6/site-packages/theano/tensor/type.py in value_zeros(self, shape)
549 return ()
550
--> 551 def value_zeros(self, shape):
552 """
553 Create an numpy ndarray full of 0 values.
KeyboardInterrupt: