Weakly Supervised Learning for Quark vs Gluon Jet Discrimination