A Generalized Framework for Population Based Training