On Fri, Jan 11, 2013 at 12:30:42AM -0800, Noel Dawe wrote:
> > +            current_pred = np.array([
> > +                current_pred == c for c in classes]).T * weight

> @glouppe do you know a better way of doing this?

Broadcasting?

Replacing "np.array([current_pred == c for c in classes]).T"

By something like "current_pred == classes[:, np.newaxis]"