title: TensorFlow - Unable to get Prediction
body: <p>I am trying to solve the <a href="https://www.kaggle.com/c/titanic" rel="nofollow noreferrer">Titanic Problem on Kaggle</a> and I am unsure of how to get the output for a given test data.</p>
  
  <p>I successfully train the network and call the method <code>make_prediction(x, test_x)</code></p>
  
  <pre><code>x = tf.placeholder('float', [None, ip_features])
  ...
  def make_prediction(x, test_data):
    with tf.Session() as sess :
      sess.run(tf.global_variables_initializer())
      prediction = sess.run(y, feed_dict={x: test_data})
      return prediction
  </code></pre>
  
  <p><br>
  I am not sure how to pass a <code>np.array</code> in this case <code>test_data</code> to get back a <code>np.array</code> which contains the prediction <code>0/1</code></p>
  
  <p><a href="https://github.com/DollarAkshay/Python-Programs/blob/f46b017ca0de88f54419b76c84a3f8ddfd324dfc/Kaggle/Titanic/Titanic.py" rel="nofollow noreferrer">Link to Full Code</a></p>