Encoder

Hello, is it possible to use my own encoder to transform the categorical data?

Indeed, you can create your own estimator in scikit-learn. It needs to follow some rules such that it works with Pipeline, SearchCV, and cross_validate. The rules are stated in the following documentation:

There is as well the following talk from Adrin Jalali that give some details during a talk at PyData: