Temporal bagging: a new method for time-based ensemble learning