Learning GANs and Ensembles Using Discrepancy