Lifelong Learning by Adjusting Priors