Keras: ValueError: error while checking the target model: it is expected that dense_1 will have the form (no, 10), but received an array with the form (10, 1)

I am new to keras and I came across this error: ValueError: error checking the target model: it is expected that dense_1 will have the form (None, 10), but will get an array with the form (10, 1). My input array form is (10, 1010)

and my model is only one layer

model = Sequential()

model.add(Dense(10, batch_input_shape=(None, 1010),init='uniform', activation='relu'))

any ideas how i can fix this, i tried many combinations, nothing works for me?

+4
source share
1 answer

, . , - (10, 1), () , (None, 10). , , . , , Keras - ?

0

Source: https://habr.com/ru/post/1664863/


All Articles