Can you just retrieve `n_classes_` from `len(classes_)`? (this way having less requirements on the base estimator)