KERAS-SEQUENTIAL MODEL-SHOWING ERROR-REQUESTED TO SUPPORT

19 views
Skip to first unread message

vellore venkateswara Sasikumar

unread,
Sep 2, 2023, 1:07:29 AMSep 2
to Keras-users
Dear Group Members,
Plz check up the Model Summary, as I am getting error in Python Code as follows.

My Model Summary:
Model: "sequential_2" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= dense_3 (Dense) (None, 5) 40 dense_4 (Dense) (None, 5) 30 dense_5 (Dense) (None, 1) 6 ================================================================= Total params: 76 (304.00 Byte) Trainable params: 76 (304.00 Byte) Non-trainable params: 0 (0.00 Byte) _________________________________________________________________

I am getting error as "ValueError: Input 0 of layer "sequential_2" is incompatible with the layer: expected shape=(None, 7), found shape=(None, 2)"

Thanking You,
V V SASI KUMAR,
"

valko.krasi...@gmail.com

unread,
Sep 8, 2023, 12:45:50 PMSep 8
to Keras-users
Hi can you format the model better :) . And the error is maybe due to input shape is different from the format of the data.
Reply all
Reply to author
Forward
0 new messages