Git Product home page Git Product logo

black-friday's Introduction

black-friday

Trying various machine learning methods to predict sales volume per customer. This is using the dataset at https://www.kaggle.com/mehdidag/regularization-and-cross-validation-from-scratch, which was apparently first used in a competition from Analytics Vidhya. The following steps are applied:

  1. Clean and cast the data properly (minimal for this dataset - the only NA's are in columns Product_Category_2 and Product_Category_3, which I'll be getting rid of, as these refer to individual purchases when I'm only looking at total sales volume per customer)
  2. Make a new dataframe with aggregated sales volume per customer
  3. Divide the data into training and test subsets (using an 80/20 split)
  4. Make a baseline model which is simply the average of total sales volume per customer, and check the RMSE and MAE if predicting that the total sales volume per customer is the average. Of course, this would result in a high RMSE and MAE and we'd expect any machine learning model would perform much better
  5. Try a basic linear model, random forest, stepwise regression, rpart model and k-fold cross-validation, storing the RMSE and MAE of each of these
  6. Plot some graphs comparing model predictions to actual values, as well as boxplots to visualize each variable

black-friday's People

Contributors

wanshun123 avatar

Forkers

adityadhotarkar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.