title: Keras: How to get class label from model.predict when using sigmoid for binary classsification
body: <p>I have implemented a basic neural network in <code>keras</code> with <code>sigmoid</code> activation at the output layer. However, when I use <code>model.predict(x_new)</code> on my unseen data, it returns me a <code>numpy</code> array with values ranging <code>0-1</code>. I want a binary class output. How to do that?</p>