This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
Sklearn object having a preprocessor function cannot be converted #15
Labels
bug
Something isn't working
pure_sklearn.map.convert_estimator
function crashes during a conversion of a sklearn unit having a functional variable (a CountVectorizer with a preprocessor parameter in my case).ValueError: Object contains invalid type: <class 'function'>
To Reproduce
Additional context
The bug can be fixed by adding built-in
types.FunctionType
intoTYPES
tuple ofpure_sklearn.utils.py
module. So I suggest to replace:with:
The text was updated successfully, but these errors were encountered: