title: How do I get a prediction out of a h5 with tensorflow model
body: <p>So I'm not able to figure out how to get a propability in % or a label out of this matrix.</p>
  
  <p>Story behind this model:</p>
  
  <p>-The model is supposed to detect if a comment(/text) should be deleted or not.</p>
  
  <p>-labels are True or False</p>
  
  <p>Is there any way to get it work or how i can transform that vector?</p>
  
  <p>My Code:</p>
  
  <pre><code>model = models.load_model(h5_model)
  string = "sh!t"
  x_test = string.lower()
  tok = text.Tokenizer(num_words=max_features, lower=True)
  tok.fit_on_texts(list(x_test))
  x_test = tok.texts_to_sequences(x_test)
  text_preprocessing_for_single_comments(string)
  prediction = model.predict(to_predict)
  print(prediction)
  
  &gt;&gt;[[0.5180945 ][0.5354299 ][0.47555092] [0.5636673]]
  </code></pre>