Error when checking input: expected dense_Dense1_input to have x dimension(s). but got array with shape y,z

Your error comes from a mismatch of the size of the training and test data from one hand on the other hand by what is defined as the input of your model model.add(tf.layers.dense({units: 1, inputShape: [5, 5] })); The inputShape is your input dimension. Here it is 5, because each features is an array of … Read more