title: how to predict target label using scikit-learn.predict function for two classes?
body: <p>I am trying to build a classifier that has two classes(<code>VALID</code> and <code>INVALID</code>).</p>
  <p>My ground truth target values(<code>y_true</code>) are <code>y_true = [0, 1, 1, 0, 1]</code></p>
  <p>Estimated targets(<code>y_pred</code>) as returned by the classifier are <code>y_pred = [9.483586549758911133e-01, 7.377880215644836426e-01, 9.916032552719116211e-01, 2.021863758563995361e-01, 1.784837543964385986e-01]</code></p>
  <p>how to get this <code>y_pred</code> values as 0 or 1? I have used a cutoff 0.5 where if any value less than 0.5 treat as 0 and rest of 1. But It's showing a very less F1 score. Without using this cutoff when I used <code>classification_report(y_true, y_pred)</code>, it's showing almost perfect F1 score.</p>
  <p>So, I am not getting how to get this target label<code>y_pred</code> values as 0 or 1?</p>