Assignment 5: Density Estimation Using Parzen Windows

Discussion: May 20th
Deadline: May 19th, 23:59

Sometimes you might be wondering how to evaluate a generative model. Evaluating whatever loss function you trained with might be a start, but it is often not very informative. Also, this precludes comparison between different frameworks (e.g. RBMs vs VAEs). Looking at samples is cumbersome and highly subjective. An objective measure of the “goodness of fit” of the model would be nice. One attempt at such a measure uses kernel density estimation, in particular the method of Parzen Windows. Work through this interactive article for a good explanation. Then implement Parzen windows and use the method to evaluate your models as follows: