Fitting Density Ratio Classes