title: How use my data for sklearn.naive_bayes.GaussianNB
body: <p>I am trying to understand how <code>Naive Bayes</code> works and want to create some example using <code>sklearn.naive_bayes.GaussianNB</code>.
  I have a data:</p>
  
  <pre><code>[
  [1, 0],
  [1, 1],
  [0, 1],
  // ...
  ];
  </code></pre>
  
  <p>Where here <code>[[1, 0]]</code> the first number is the type of a pet: cat or dog, and the second one: light or dark color has a pet. After that I want to give a list like [0,0,1] that represent a color and predict the type of pet. </p>
  
  <p>And I am trying to use example from <a href="http://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.GaussianNB.html" rel="nofollow noreferrer">http://scikit-learn.org/stable/modules/generated/sklearn.naive_bayes.GaussianNB.html</a>. I rewrote this:</p>
  
  <pre><code>import numpy as np
  X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
  Y = np.array([1, 1, 1, 2, 2, 2])
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>import numpy as np
  X = np.array([ [1, 0], [1, 1], [0, 1] ])
  </code></pre>
  
  <p>But what should be instead of <code>Y = np.array([1, 1, 1, 2, 2, 2])</code> in my case?</p>
  
  <p>Or maybe I should keep my data in another one format?</p>