Implementation of early stopping in tensorflow based on any chosen metric
Implementation of early stopping in tensorflow based on any metric chosen