Jointly Forecasting and Controlling Behavior by Learning from High-Dimensional Data