The warning is raised by scikit-learn and asks you to use the keyword arg for the passed classes instead of a positional argument.
I don’t know which method you are calling, but try to use it via: sklearn.some_method(classes=classes).