Git Product home page Git Product logo

gps-fun's Introduction

Women Who Code - CONNECT Conference Workshop

What does this repo have?

  1. Data - A list of (lat,lng) coordinates around San Francisco. Look under gps-fun/data.
  2. A Frontend Page - To visualize the raw data and clustered results on the map.
  3. Scripting entries - Run clustering algorithms to generate clusters and find the most representative center of a cluster. Centers can be visualized on the frontend page.

Setup

The following steps will help you setup a development environment.

  1. Install pip

$ sudo easy_install pip
  1. Install virtualenv

$ sudo pip install virtualenv
  1. Clone this repository

$ git clone [email protected]:salami162/gps-fun.git
$ cd gps-fun
  1. Activate virtual environment

$ virtualenv venv
$ source venv/bin/activate
  1. Install the required python packages

$ pip install -r requirements.txt
  1. Find Help/Available options

$ python manage.py --help
  1. Running the server

python manage.py runserver

This will launch a server on localhost at port 5000. Hit up the index page at http://localhost:5000/ The Start/Stop toggle button on the top right corner is meant to start polling for changes in the trained clusters. Before you hit it the first time, make sure you've run atleast one round of clustering, so as to generate a ./data/trained_output.csv. To run one, see the next step.

  1. Running KMeans

python manage.py kmeans -c 4 -src './data/wwc_conf_dataset_tiny.csv' -dest './data/trained_output.csv'

Given a csv file of locations, generates clusters and outputs the cluster centers into another csv file. The above command will output 4 clusters, with the lat/lng of the centers in ./data/trained_output.csv

Recommended Reading

Here's some reading you can do to help familiarize yourself with Clustering, k-means clustering and Hierarchical clustering.

Documentation

sklearn clustering links to docs for the python package that implements various clustering algorithms.

gps-fun's People

Contributors

salami162 avatar sbalireddi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.