Category: Machine Learning

Graphing Assumptions
Graphing Assumptions
Checking for assumptions (3 in this case), with subplotted seaborn graphics.The code for creating the linear regression model can be found in this post Linearity Assumption‘Each predictor variable (x) is linearly related to the outcome of variable y.’ Checking Homeoscedacity assumption with a scatterplot y_pred are the predicted y values from a regression line.The residuals…

Classification Models: Data Process
Classification Models: Data Process
Introduction: Classification models are machine learning models that are used to predict binary outcome scenarios such as: Spam / Not SpamFraudulent Transaction / NonFraudulant Transationcustomer churn/ customer will not churncuster high value / customer low valueload approval /nonapproval The Data Process Planning Exploratory Data Analysis (Python) Model Selection (Classification) Classification Models: Naive Bayes, Logistic Regression,…

KMeans
KMeans
Supermarket Example Import libraries and read in CSV file to data frameThe data comes from kaggle here (mall data) First, we run some basic checks on the data to check for data integrity.Data includes 200 rows of data by 5 columns We can change Gender to numeric with the following Then we check for nulls…

Building a Human Resources Employee Attrition Model
Building a Human Resources Employee Attrition Model
Here we make use of the HR Analytics dataset available on Kagoo. The dataset was created to understand the factors behind employee attrition and can be used to train a model for predicting employee churn. The Python Code for the 2 models is on Github We can start by importing the required libraries and import…

Creating a Customer Lifetime Value (LTV) Prediction Model
Creating a Customer Lifetime Value (LTV) Prediction Model
In this project I’m trying to predict customer lifetime sales (well actually first 12month sales), initially using the SKlearns linear regression model. The code can be downloaded from Github here. The results haven’t been great so far and I wonder how the data from the Contoso Retail data warehouse was created as I have an…