Machine-learning prediction of fluid variables from data using reservoir computing