Prediction of imminent failure using supervised learning in a fiber bundle model.