gbc: allow weighting examples