Schrödinger bridge problem via empirical risk minimization