endure_count == patience 作者自己实现了一种 early stopping 用 endure_count 参数代替了 early stopping 中的patience,并达到检测 验证误差 val_loss 的作用