title: How to mimic this simple code but for images?
body: <p>I have the following Python script which represents the input data <code>X</code> and the labels <code>y</code>:</p>
  
  <pre><code>X = np.array([[0,0,1],
              [0,1,1],
              [1,0,1],
              [1,1,1]])
  
  y = np.array([[0],
              [1],
              [1],
              [0]])
  </code></pre>
  
  <p>I would like to do exactly the same but for image data. So, I have a set of images that I know their labels. How can I use the above analogy but for image files? If I would like to keep <code>y</code> as-is, how will <code>X</code> look like?</p>
  
  <p>Would I need to simply convert my images into vectors for instance?</p>
  
  <p>Thanks.</p>