python – Tensorflow: An error of incompatible between output of Dense layer and the shape of the label: logits and labels must have the same first dimension

I have a question about the output shape of Dense layer. In my case, the ground truth of labels is a 155 long list. The data part is converted from image. The dataset was assembled: dataset =, labels)) dataset = dataset.batch(1) In order to know the shape of dataset, a iteration is conducted: import … Read more

machine learning – Keras Dense Model ValueError: logits and labels must have the same shape ((None, 200, 1) vs (None, 1, 1))

I’m new in machine learning and I’m trying to train a model. I’m using this Keras oficial example as a guide to set my dataset and feed it into the model: From the training data I have an sliding windows created for a single column and for the labels I have a binary classification … Read more