This error is most likely raised by one of the used scikit-learn methods, so you could check the types of all inputs and make sure to pass the expected inputs to these methods.
Unfortunately, I don’t have a guess which method might raise the issue.