title: TensorFlow/TFLearn: ValueError: Cannot feed value of shape (64,) for Tensor u'target/Y:0', which has shape '(?, 10)'
body: <p>I have been trying to perform regression using <a href="https://github.com/tflearn/tflearn" rel="noreferrer">tflearn</a> and my own dataset.</p>
  
  <p>Using tflearn I have been trying to implement a convolutional network based off an <a href="https://github.com/tflearn/tflearn/blob/master/examples/images/convnet_mnist.py" rel="noreferrer">example</a> using the MNIST dataset. Instead of using the MNIST dataset I have tried replacing the training and test data with my own. My data is read in from a csv file and is a different shape to the MNIST data. I have 255 features which represent a 15*15 grid and a target value. In the example I replaced the lines 24-30 with (and included import numpy as np):</p>
  
  <pre><code>#read in train and test csv's where there are 255 features (15*15) and a target
  csvTrain = np.genfromtxt('train.csv', delimiter=",")
  X = np.array(csvTrain[:, :225]) #225, 15
  Y = csvTrain[:,225]
  
  csvTest = np.genfromtxt('test.csv', delimiter=",")
  testX = np.array(csvTest[:, :225])
  testY = csvTest[:,225]
  
  #reshape features for each instance in to 15*15, targets are just a single number
  X = X.reshape([-1,15,15,1])
  testX = testX.reshape([-1,15,15,1])
  
  ## Building convolutional network
  network = input_data(shape=[None, 15, 15, 1], name='input')
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>ValueError: Cannot feed value of shape (64,) for Tensor u'target/Y:0',
    which has shape '(?, 10)'</p>
  </blockquote>
  
  <p>I have tried various combinations and have seen a <a href="https://stackoverflow.com/questions/37238653/tensorflow-tflearn-valueerror-cannot-feed-value-of-shape-256-400-400-for-t">similar question</a> in stackoverflow but have not had success. The example in this page does not work for me and throws a similar error and I do not understand the answer provided or those provided by similar questions.</p>
  
  <p>How do I use my own data?</p>