Learning to predict arbitrary quantum processes