keras-io icon indicating copy to clipboard operation
keras-io copied to clipboard

Value error

Open rsinghal04 opened this issue 3 years ago • 0 comments
trafficstars

ValueError Traceback (most recent call last) in 16 17 # Begin training the model. ---> 18 clustering_learner.fit(x=inputs, y=labels, batch_size=512, epochs=50)

~/.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?

rsinghal04 avatar Mar 13 '22 16:03 rsinghal04