Okay, but why is that? The user might not know that classes have been remapped to [0..classes-1] (see `unique` at line 111) by the estimator and hence might not understand why this does not work. You are asking him to provide a value which is not known in advance.