Forecasting With Supervised Methods Through Factor Models