Tag: machine-learning

  • 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…

  • Diagnosis: Correlation

    Diagnosis: Correlation

    In order to find the best data build our model, we need to run correlations on the data. In the initial predictive model we built, we guessed the fields, namely age, gender, income and first purchase amount, but the model gave a very poor MSE accuracy result, so we need to go back to the…

  • Graphing Data with Matplotlib

    Graphing Data with Matplotlib

    In the previous article ‘Creating a Customer Lifetime Value Model’ we imported and transformed a table of customer data from an MS SQL Database, which included the ‘first 12 months sales amount’. At the end of the exercise, we exported the data frame to a CSV file, which we can check out using the Matplotlib…

  • Seasborn Graphs

    Seasborn Graphs

    This is pretty powerful. You can spend your time creating graphs one at a time or you can create a pairs plot using the Seaborn library. The pairs plot graphs every combination of variables, to create multiple graphs. The scatter graphs are below and the simple code is further down the page. There is a…