__init__() got an unexpected keyword argument 'categorical_features'

The error message "TypeError: init() got an unexpected keyword argument 'categorical_features'" typically occurs when you are trying to pass an unsupported argument to the init() method in Python.

To resolve this issue, you can check the documentation or the source code of the class or function you are using to see if the 'categorical_features' argument is supported. If it is not supported, you should remove or modify the argument accordingly.

If you are using a library or package, make sure you are using the correct version that supports the 'categorical_features' argument. It is possible that the argument was introduced in a later version of the library, and you may need to upgrade to that version.

If you are still facing issues, it would be helpful to provide more context or code snippets so that I can assist you further.