Open ogunoz opened 3 years ago
Hi thanks for raising the issue. Would you be open to submitting a PR with the suggested changes including a unit test to ensure that this error doesn't persist? I'd gladly approve the PR if it is indeed a basic update as you suggest.
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: