Discriminators as approximations of ratios of distributions