kelvin's early stopping implementation added, with minor adaptation to turkish