---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-85-9fe697d8f0a8> in <module>()
1 print "Train model"
----> 2 model.fit(x_train, y_train, nb_epoch=10, shuffle=True, verbose=True)
/Users/andreas/anaconda/lib/python2.7/site-packages/keras/models.pyc in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, **kwargs)
625 shuffle=shuffle,
626 class_weight=class_weight,
--> 627 sample_weight=sample_weight)
628
629 def evaluate(self, x, y, batch_size=32, verbose=1,
/Users/andreas/anaconda/lib/python2.7/site-packages/keras/engine/training.pyc in fit(self, x, y, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight)
1050 class_weight=class_weight,
1051 check_batch_dim=False,
-> 1052 batch_size=batch_size)
1053 # prepare validation data
1054 if validation_data:
/Users/andreas/anaconda/lib/python2.7/site-packages/keras/engine/training.pyc in _standardize_user_data(self, x, y, sample_weight, class_weight, check_batch_dim, batch_size)
981 output_shapes,
982 check_batch_dim=False,
--> 983 exception_prefix='model target')
984 sample_weights = standardize_sample_weights(sample_weight,
985 self.output_names)
/Users/andreas/anaconda/lib/python2.7/site-packages/keras/engine/training.pyc in standardize_input_data(data, names, shapes, check_batch_dim, exception_prefix)
109 ' to have shape ' + str(shapes[i]) +
110 ' but got array with shape ' +
--> 111 str(array.shape))
112 return arrays
113
Exception: Error when checking model target: expected activation_60 to have shape (None, 8) but got array with shape (301, 10)