ValueError: Error when checking input: expected dense_36_input to have shape (None, 12) but got array with shape (140, 2)
@Angel
Input dimetion means how many no of feature or columns your input is supposed to have.
The neural network will try to adjust to this input shape.
In your case you have specified input_dim = 12 but in your data (140,2) there are only 2 features or columns.
So there are two options

Set input_dim =2

Reshape input array to in multiples of specified input dim i..e 12.


In your case ONLY option 1 works because (140,2) cannot be reshaped in multiples of 12.
Note:: other valid input_dim for you can be 14 (reshape input to (20,14)), 10 (reshape input to (28,10))