I'm not sure why we're using both `np.unique(y)` and a `LabelEncoder` here. The latter produces the same result as its `classes_` attribute.