This repository contains code required to reproduce the results in the paper 'Inferring ocean transport statistics with probabilistic neural networks' by Martin T. Brolly, which is available at https://doi.org/10.1029/2023MS003718. Accompanying data is available at https://doi.org/10.7488/ds/3821.