이전 강의 내용 따라 '만든모델 확인하기'까지는 정상 확인되었으나 '학습하기'과정시에 문제가 발생합니다.
무엇이 문제일까요;;;
[만든모델 확인하기] - 정상 출력
Model: "sequential_19"
_________________________________________________________________
Layer (type) Output Shape Param #
=================================================================
dense_16 (Dense) (None, 64) 640
dense_17 (Dense) (None, 64) 4160
dense_18 (Dense) (None, 64) 4160
dense_19 (Dense) (None, 1) 65
=================================================================
Total params: 9,025
Trainable params: 9,025
Non-trainable params: 0
_________________________________________________________________
[딥러닝 모델로 학습하기] - 오류코드 발생
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-97-7ab83e71177e> in <module>
----> 1 model.fit(train_dataset, train_labels, epochs=10, verbose=1)
1 frames
/usr/local/lib/python3.7/dist-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: 318
y sizes: 80
Make sure all arrays contain the same number of samples.
comment