---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-143-9cfa79be09da> in <module>()
20 model.fit(
21 x_train, to_categorical(y_train, num_classes),
---> 22 epochs=10, batch_size=200, shuffle=True, verbose=False
23 )
24 preds = np.argmax(model.predict(x_test), axis=1)
/Users/asydorchuk/miniconda2/lib/python2.7/site-packages/keras/models.pyc in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, **kwargs)
843 class_weight=class_weight,
844 sample_weight=sample_weight,
--> 845 initial_epoch=initial_epoch)
846
847 def evaluate(self, x, y, batch_size=32, verbose=1,
/Users/asydorchuk/miniconda2/lib/python2.7/site-packages/keras/engine/training.pyc in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, **kwargs)
1403 class_weight=class_weight,
1404 check_batch_axis=False,
-> 1405 batch_size=batch_size)
1406 # prepare validation data
1407 if validation_data:
/Users/asydorchuk/miniconda2/lib/python2.7/site-packages/keras/engine/training.pyc in _standardize_user_data(self, x, y, sample_weight, class_weight, check_batch_axis, batch_size)
1293 self._feed_input_shapes,
1294 check_batch_axis=False,
-> 1295 exception_prefix='model input')
1296 y = _standardize_input_data(y, self._feed_output_names,
1297 output_shapes,
/Users/asydorchuk/miniconda2/lib/python2.7/site-packages/keras/engine/training.pyc in _standardize_input_data(data, names, shapes, check_batch_axis, exception_prefix)
119 ' to have ' + str(len(shapes[i])) +
120 ' dimensions, but got array with shape ' +
--> 121 str(array.shape))
122 for j, (dim, ref_dim) in enumerate(zip(array.shape, shapes[i])):
123 if not j and not check_batch_axis:
ValueError: Error when checking model input: expected dense_851_input to have 2 dimensions, but got array with shape (49000, 32, 32, 3)