Closed adalli13 closed 3 years ago
hey @adalli13. This looks indeed like a problem with the SKLearnWrapper. I think it may not have been designed to handle sklearn BaseEnsemble instances because only hyperparameters - not complete models - are supposed to be encoded by the JSONHyperparametersRepo. In your case, the sklearn model that is the base_estimator attribute is being treated as if it was an hyperparameter sample.
I'll be looking more deeply into it in a couple of hours and will provide you with a workaround (or will fix it directly in the framework) today or tomorrow. Cheers.
Hey @adalli13, the fix for this problem has been merged into the master branch of Neuraxle and will be part of the 0.5.8 release. Your example should work now if you install neuraxle from the master branch. Please let me know if everything is good on your side and I'll close this issue. Thank you for signalling us this problem.
Hi @vincent-antaki, thank you for solving the issue. From my point of view, it is resolved.
Describe the bug I tried to use a BaggingRegressor in an AutoML pipeline. Though, this leads to an error, as the base estimator of the BaggingRegressor is not JSON serializable.
The code excerpts are the following:
The same happens also if I try to use the SKLearnWrapper for the GradientBoostingRegressor class.
To Reproduce neuraxle 0.5.7 scikit-learn 0.24.1
Expected behavior Please tell me if I need to use an estimator like BaggingRegressor in a different way :)