Hey, hope you are having a wonderful day!
Whenever I work on a new ML project. These lines always pop up in my mind every time
“I need to fit the data for every model then apply metrics to check which model has better accuracy for the available dataset ,then choose best model and also this process is time-consuming and even it might not be that much effective too“
For this problem, I got a simple solution when surfing through python org, which is a small python library by name **“lazypredict” **and it does wonders
Let me tell you how it works:-
pip install lazypredict
lazypredict comes only for supervised learning (Classification and Regression)
I will be using jupyter notebook in this article
## import necessary modules
import warnings
warnings.filterwarnings('ignore')
import time
from sklearn.datasets import load_iris,fetch_california_housing
from sklearn.model_selection import train_test_split
from lazypredict.Supervised import LazyClassifier,LazyRegressor
#ai #data-science #deep-learning #python #machine-learning