CS231n Lecture Note: Generative Models