#1474 fixed bug in alglib that resulting in random models when using the early stopping training method for multi layer perceptrons.