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.03k stars 344 forks source link

Classification turned into regression #450

Open FeliciaSatriya opened 6 months ago

FeliciaSatriya commented 6 months ago

Describe the bug I was running LazyClassifier for a classification problem on my data, however, it returned the result of a regression problem as the output metrics are all regression metrics. I ran it two times in case the first one was a glitch, but the output remains the same. As a note, I already transformed all of my data into numerics to ensure that it is compatible with all models, with the class target labeled as 0 and 1.

Here is a screenshot of my code and the result. Screenshot 2024-04-30 224353

Desktop (please complete the following information):

Additional context The code was ran on Jupyter Notebook. My jupyter code packages: IPython : 8.10.0 ipykernel : 6.19.2 ipywidgets : 7.6.5 jupyter_client : 7.3.4 jupyter_core : 5.2.0 jupyter_server : 1.23.4 jupyterlab : 3.5.3 nbclient : 0.5.13 nbconvert : 6.5.4 nbformat : 5.7.0 notebook : 6.5.2 qtconsole : 5.4.0 traitlets : 5.7.1

Python version: Python 3.10.9 All of the necessary python libraries also already pre-installed

AnyigorTobias commented 4 months ago

Hello Felicia, check the line 10 of your code. You made use of LazyRegressor instead of LazyClassifier. Check the documentation. https://lazypredict.readthedocs.io/en/latest/usage.html#classification