Prediction using Keras models : I trained a Keras model, however, I have difficulty in making it predict. 

My input array is of the shape (400,2) and the output array is of the shape (400,1)

Now when I pass the argument array([1,2]) in the model.predict() function, I get the error:
        
     ValueError: Error when checking input: expected dense_1_input to have shape (2,) but got array with shape (1,).

Which is nonsensical since shape(array([1,2])) = (2,) and hence the model.predict function should accept it as a valid input. 

Can somebody tell me as to what is going on?

P.S. 
It works well when I pass an array of (2,2) dimensions but the output is also a (2,1) array. 
