training on bidir working and prediction with limited future horizon