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
2.86k stars 329 forks source link

'ColumnTransformer' object has no attribute '_check_n_features' #339

Closed ManuFU closed 3 years ago

ManuFU commented 3 years ago

Describe the bug When fitting the LazyRegressor, i get following output for all algorithms.

image

To Reproduce Steps to reproduce the behavior: Check out this notebook https://colab.research.google.com/drive/1CZa8rL2N4PxUqhCKAyzO3incPFfGwwIM?usp=sharing

Expected behavior I expect the table of the results of the regressors

brendalf commented 3 years ago

Hi @ManuFU, thank you for opening this issue. @shankarpandala, when the input doesn't have categorical features, the categorical_low and categorical_high column transformers are useless. Perhaps this is causing the issue?

Doing some research, I've found that this issue can also be related to sklearn versions conflict. But looking at the notebook, I didn't find any.