Advertisement
Guest User

Untitled

a guest
Apr 12th, 2020
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.23 KB | None | 0 0
  1. AttributeError                            Traceback (most recent call last)
  2. <ipython-input-152-71ee26dcbbf2> in <module>
  3. ----> 1 model.fit(x = train, y = [tr_digit1, tr_digit2, tr_digit3, tr_digit4, tr_digit5, train_length] , shuffle=True, epochs = 3)
  4.  
  5. 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)
  6.     707         steps=steps_per_epoch,
  7.     708         validation_split=validation_split,
  8. --> 709         shuffle=shuffle)
  9.     710
  10.     711     # Prepare validation data.
  11.  
  12. 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)
  13.    2671           shapes=None,
  14.    2672           check_batch_axis=False,  # Don't enforce the batch size.
  15. -> 2673           exception_prefix='target')
  16.    2674
  17.    2675       # Generate sample-wise weight values given the `sample_weight` and
  18.  
  19. 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)
  20.     335     ]
  21.     336   else:
  22. --> 337     data = [standardize_single_array(x) for x in data]
  23.     338
  24.     339   if len(data) != len(names):
  25.  
  26. D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training_utils.py in <listcomp>(.0)
  27.     335     ]
  28.     336   else:
  29. --> 337     data = [standardize_single_array(x) for x in data]
  30.     338
  31.     339   if len(data) != len(names):
  32.  
  33. D:\Program_files\Anaconda_1\lib\site-packages\tensorflow\python\keras\engine\training_utils.py in standardize_single_array(x, expected_shape)
  34.     263     return None
  35.     264
  36. --> 265   if (x.shape is not None and len(x.shape) == 1 and
  37.     266       (expected_shape is None or len(expected_shape) != 1)):
  38.     267     if tensor_util.is_tensor(x):
  39.  
  40. AttributeError: 'list' object has no attribute 'shape'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement