shankarpandala / lazypredict

Lazy Predict help build a lot of basic models without much code and helps understand which models works better without any parameter tuning
MIT License
3.01k stars 344 forks source link

Error - Stacking Regressor #223

Closed byrnesy closed 3 years ago

byrnesy commented 4 years ago

Hi,

I have copied the sample code for the regression comparison (Boston dataset).

It starts running and then stops with the following error message

StackingRegressor model failed to execute init() missing 1 required positional argument: 'estimators'

Context I am using sklearn = '0.23.1' Using jupyter lab Browser = Firefox

erykml commented 3 years ago

The reason for this error is that the library tries to fit the StackingRegressor without actually passing in any base regressors, which logically will not work. What you can do is clone the code, remove StackingRegressor from the list of regressors, and install the library from your local code. Hope this helps :)

On a side note, this seems like an uncommitted change by the author, as in the example's results you do not see StackingRegressor in the list of regressors :)

erykml commented 3 years ago

Alternatively, set ignore_warnings to True and it will also run.