Tag Archives: scikit-learn

How to create and optimise a baseline Lasso Regression Model in Python

How to create and optimise a baseline Lasso Regression Model in Python Lasso Regression is another variation of linear regression that also helps prevent overfitting by adding a regularization term to the cost function. However, it uses a different method than Ridge Regression and tends to work better when we have a lot of input …

How to create and optimise a baseline Ridge Regression Model in Python

How to create and optimise a baseline Ridge Regression Model in Python Ridge Regression is a variation of linear regression that helps prevent overfitting by adding a regularization term to the cost function. In this article, we will go over the basics of how to create and optimize a Ridge Regression model in Python. First, …

How to create and optimise a baseline Linear Regression Model in Python

How to create and optimise a baseline Linear Regression Model in Python Linear Regression is a popular method of statistical analysis that can be used to predict a continuous variable based on a set of input variables. In this article, we will go over the basics of how to create and optimize a linear regression …

How to optimise hyper-parameters of a DecisionTree Model using GridSearchCV in Python

How to optimise hyper-parameters of a DecisionTree Model using GridSearchCV in Python When building a machine learning model, it’s important to optimize the parameters of the model for the best performance. One way to do this is by tuning the hyper-parameters of a DecisionTree model using GridSearchCV. A Decision Tree model is a simple and …

How to optimise hyper-parameters of a Logistic Regression Model using GridSearchCV in Python

How to optimise hyper-parameters of a Logistic Regression Model using GridSearchCV in Python When building a machine learning model, it’s important to optimize the parameters of the model for the best performance. One way to do this is by tuning the hyper-parameters of a logistic regression model using GridSearchCV. Logistic regression is a statistical method …

How to tune hyper-parameters using RandomSearchCV in Python

How to tune hyper-parameters using RandomSearchCV in Python When building a machine learning model, it’s important to optimize the parameters of the model for the best performance. One way to do this is by tuning the hyper-parameters using RandomSearchCV. RandomSearchCV is a method that allows you to search for the best combination of hyper-parameters, by …

How to tune hyper-parameters using GridSearchCV in Python

How to tune hyper-parameters using GridSearchCV in Python When building a machine learning model, it’s important to optimize the parameters of the model for the best performance. One way to do this is by tuning the hyper-parameters using GridSearchCV. GridSearchCV is a method that allows you to search for the best combination of hyper-parameters, by …

How to plot ROC Curve in Python

How to plot ROC Curve in Python When building a machine learning model for a binary classification problem, it’s important to evaluate its performance using various metrics. One way to do this is by plotting an ROC (Receiver Operating Characteristic) curve. An ROC curve is a graph that shows the relationship between the model’s true …