title: ValueError in sklearn.naive_bayes.GaussianNB
body: <p>I started to learn machine learning.
  So I started with Naive Bayes 
  <br>my python script</p>
  
  <pre><code>import numpy as np
  x = np.array([[0,0],[1,1],[0,1],[1,0]])
  y = np.array([0,0,1,1])
  print(x)
  from sklearn.naive_bayes import GaussianNB
  clf = GaussianNB()
  x = x.reshape(1,-1)
  y = y.reshape(1,-1)
  clf.fit(x,y)
  a = clf.predict([[1,1]])
  print(a)
  </code></pre>
  
  <p>the error I am get is </p>
  
  <pre><code>[[0 0]
  [1 1]
  [0 1]
  [1 0]]
  Traceback (most recent call last):
    File "ex.py", line 9, in &lt;module&gt;
      clf.fit(x,y)
    File "/usr/local/lib/python2.7/dist-packages/sklearn/naive_bayes.py", line 182, in fit
      X, y = check_X_y(X, y)
    File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 526, in check_X_y
      y = column_or_1d(y, warn=True)
    File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 562, in column_or_1d
      raise ValueError("bad input shape {0}".format(shape))
  ValueError: bad input shape (1, 4)
  </code></pre>
  
  <p>what should I do?</p>