On the effectiveness of a neural network for adaptive external pacing