项目作者: rytsh

项目描述 :
Customer lifetime value calculation on supermarket
高级语言: Jupyter Notebook
项目地址: git://github.com/rytsh/clvmarket.git
创建时间: 2019-04-07T13:03:26Z
项目社区:https://github.com/rytsh/clvmarket

开源协议:

下载


Customer Analytics [ CLV SuperMarket ]

Eray Ates, Sibel Gurbuz

This is an example CLV project for Customer Analytics lesson by Assoc.Prof.Dr. Başar ÖZTAYŞİ.

Before to run python, execute this command

  1. sudo pip install -r requirements

For debug put this in where you want

  1. import ipdb; ipdb.set_trace()

Create MySQL DB

For create database run this command with your username and password.

  1. mysql -u <username> -p < DB/migrosdb.sql

Generate ER diagram with eralchemy use this command, if you don’t have eralchemy install from pip

  1. eralchemy -i mysql+mysqlconnector://muser:muser@localhost:3306/Migros -o erd_from
  2. _sqlite.pdf

Add fake values in it

Please edit config.json file for authentication to database and fake data settings.

  1. python fill.py

Check analysis on jupyter notebook page

  1. calculateCLV.ipynb