Learning Generalized Partial Policies from Examples