Imported from https://github.com/elsheikh21/population-based-training-of-NNs