2013/8/25 Arnaud Joly <notifications@github.com>
> I think this would be cleaner and faster with a set
>
> all_classes = set(range(n_classes)
> missing = all_classes.difference(estimator.classes_)

np.setdiff1d(np.arange(n_classes), estimator.classes_)