keras-io
keras-io copied to clipboard
Value error
ValueError Traceback (most recent call last)
~/.local/lib/python3.9/site-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs) 65 except Exception as e: # pylint: disable=broad-except 66 filtered_tb = _process_traceback_frames(e.traceback) ---> 67 raise e.with_traceback(filtered_tb) from None 68 finally: 69 del filtered_tb
~/.local/lib/python3.9/site-packages/keras/engine/data_adapter.py in _check_data_cardinality(data) 1651 for i in tf.nest.flatten(single_data))) 1652 msg += "Make sure all arrays contain the same number of samples." -> 1653 raise ValueError(msg) 1654 1655 ValueError: Data cardinality is ambiguous: x sizes: 8035, 7680 y sizes: 8035 Make sure all arrays contain the same number of samples.
Any idea why this is happening?