Predicting electrophysiological function of ex-vivo hearts using machine learning