But keep the method to ensure backwards compatibility with MLJModelInterface 1.0. In MLJBase 1.10 the method calls `CategoricalArrays.levels`. Previously it called `CategoricalDistributions.classes`.