Training Neural Networks for Sequential Change-point Detection