Git Product home page Git Product logo

instacart's Introduction

InstaCart Recommender

Analytics Value Chain Project

Project Charter

Make recommendations for items a user may want to buy based on the items they are adding to their shopping cart to anticipate items they may want to add, increase app engagement, and ultimately increase order size.

Vision

Increase app engagement, identify desired items, and ultimately increase order size

Mission

Increase order size by using recommendations from the user?s current shopping list to suggest missing items or items that the user may want to try, and make adding such items to the shopping list highly accessible to the user

Success Criteria

User feedback and assessment logical order product sets

Package requirements

  • Flask
  • FlaskSQLAlchemy -
    • A flask plugin for SQLAlchemy. SQLAlchemy is an Object Relational Mapper (ORM), which means it allows interaction with relational data models using object oriented approaches, like those typically used in python.
    • This project uses SQLAlchemy to create, read from, and write to relational databases.
    • SQLAlchemy's flexibility will allow for a smooth transition from using a local database to using something like Amazon RDS. All that needs to change is a configuration in the app code (see this blog for more on transition to RDS)
  • Surprise
    • Surprise is a Python scikit building and analyzing recommender systems
    • Surprise is used to build the a collaborative filtering recommender system for the app

Suggested steps

  1. Clone repository

  2. Create virtual environment for new app

    virtualenv -p python3 Instacart

  3. Activate environment

    source activate Instacart

  4. Install required packages

    pip install -r requirements.txt

  5. Download InstaCart csv files from Kaggle and save to analyze/data folder

  6. Set up instacart.env file with the following structure to connect to a database instance:

    
    export DATABASE_URL= XXX
    
    export DATABASE=XXX
    export USERNAME=XXX
    export PORT=XXX
    export PASSWORD=XXX
    export HOST=XXX`
    
    export SECRET_KEY=XXX`` 
    
    
  7. Set your environment

    source instacart.env

  8. Define database

    python create_db.py

  9. Create features, keys, and model by running make all from the analyze/ directory

  10. Run tests on code

    cd analyze/tests
    pytest
    
  11. Run the app by running python application.py from the root directory

You should be able to go to the IP address that it responds with and see your web app.

To see what it should look like, visit this link

Pivotal Tracker

Project Developer: Sarah Greenwood, Project Manager: Logan Wilson, QA: Jill Fan

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.