Contextualized Learning Theory