Giter Site home page Giter Site logo

techcentaur / clustomer Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.86 MB

Real time customer data analysis platform with results in geo-location clusters

Python 73.45% HTML 25.96% Dockerfile 0.59%
clustering data-analysis data-science geo-location

clustomer's Introduction

Clustomer

Real time customer data analysis platform with results in geo-location clusters mapped on KML file (can be viewed in Google Maps)

Python 3.6

Installation and Setup

From Source

1. Clone this repository
2. Run `pip install -r requirements.txt`
3. Application is ready to be used. See Usage section.

From Docker-image

Usage

Using as a Web-App

solanki@bhavya:~/NOKIA/Clustomer$ python3 app.py --flask
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

Using CLU (Command Line Utility)

solanki@bhavya:~/NOKIA/Clustomer$ python3 app.py -h
usage: app.py [-h] (-flask | -clu) [-k KML] [-x XLSX] [-c CLUSTERS]

Clustomer: Clustering customers onto a map in KML given a geo-location in Excel data format

optional arguments:
  -h, --help            show this help message and exit
  -flask, --flask       Run flask app
  -clu, --clu           Use command line utility
  -k KML, --kml KML     Geolocation map in kml format
  -x XLSX, --xlsx XLSX  Data of customers in excel format
  -c CLUSTERS, --clusters CLUSTERS
                        Number of clusters

Using from Python

>>> import logging
>>> logging.basicConfig(filename="somefile.log", level=logging.DEBUG)
>>> logger = logging.getLogger('LOG')
>>>
>>> from algo import *
>>> data = {
...     "data_file_path": "f1.xlsx",
...     "kml_file_path": "f2.kml",
...     "number_of_clusters": 5
... }
>>> logic = cluster.Logic(args.xlsx, query={}, logger=logger)
>>> c = coloring.ColorKML(data, logger=logger, logic=logic, process=True)
[*] File saved as updated_f2.kml

Note: Look into documentation to know how to gain more manual control with process=False

How to Troubleshoot

  1. Look in the Logs: Look in /logs folder for the most recent log. The log-files are in a format as YYYY-MM-DD HH-MM-logfile.log, i.e., as an example: 2019-07-10 11-46-logfile.log.

  2. If logic halts and application misbehaves, feel free to drop a mail here, with a subject starting from CLUSTOMER ISSUE: <>. I would be glad to solve it.

How to View KML Files

  1. KML files can be viewed in Google-Earth PRO

    • Here is how to download google earth:
      • Download GEP from here.
      • Double-click the file and follow the installation process.
      • To open GEP, click Start and then Programs and then Google Earth Pro. Then, click Google Earth Pro.
  2. View it online: This website would work.

Note: KML files can also be viewed in Google-maps

clustomer's People

Contributors

techcentaur avatar varunbhandia avatar

Watchers

 avatar  avatar

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.