Text this: A Unified Approach for Ensemble Function and Threshold Optimization in Anomaly-Based Failure Forecasting.