Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AttributeError Traceback (most recent call last)
- <ipython-input-152-71ee26dcbbf2> in <module>
- ----> 1 model.fit(x = train, y = [tr_digit1, tr_digit2, tr_digit3, tr_digit4, tr_digit5, train_length] , shuffle=True, epochs = 3)
- D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\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, steps_per_epoch, validation_steps, validation_freq, max_queue_size, workers, use_multiprocessing, **kwargs)
- 707 steps=steps_per_epoch,
- 708 validation_split=validation_split,
- --> 709 shuffle=shuffle)
- 710
- 711 # Prepare validation data.
- D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training.py in _standardize_user_data(self, x, y, sample_weight, class_weight, batch_size, check_steps, steps_name, steps, validation_split, shuffle, extract_tensors_from_dataset)
- 2671 shapes=None,
- 2672 check_batch_axis=False, # Don't enforce the batch size.
- -> 2673 exception_prefix='target')
- 2674
- 2675 # Generate sample-wise weight values given the `sample_weight` and
- D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training_utils.py in standardize_input_data(data, names, shapes, check_batch_axis, exception_prefix)
- 335 ]
- 336 else:
- --> 337 data = [standardize_single_array(x) for x in data]
- 338
- 339 if len(data) != len(names):
- D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training_utils.py in <listcomp>(.0)
- 335 ]
- 336 else:
- --> 337 data = [standardize_single_array(x) for x in data]
- 338
- 339 if len(data) != len(names):
- D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training_utils.py in standardize_single_array(x, expected_shape)
- 263 return None
- 264
- --> 265 if (x.shape is not None and len(x.shape) == 1 and
- 266 (expected_shape is None or len(expected_shape) != 1)):
- 267 if tensor_util.is_tensor(x):
- AttributeError: 'list' object has no attribute 'shape'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement