Coder Social home page Coder Social logo

dbscan-taxi-clustering-java's Introduction

Taxi Clustering using Java

Instructions

  1. Start terminal and cd into the directory
  2. Compile all the java files
  3. run java TaxiClusters.

The values of MinPts and eps can also be changed.

Description

The goal of this project is to implement the DBSCAN algorithm in order to cluster various trip records using the GPS coordinates of the starting points.

Link to an explanation of the DBSCAN algorithm: https://en.wikipedia.org/wiki/DBSCAN

The dataset I am using is a CSV file containing all the trip records for January 15, 2009 between 12pm and 1pm in New York City.

The implementation is object-oriented programming therefore it will contain different classes such as:

  • TaxiClusters: the main application that processes the data, and the values of the parameters MinPts and eps. It also creates a CSV file for each cluster created that contains all the points in it. A function that gives you the 10 biggest clusters is also implemented (It can be commented in on line 172 of TaxiClusters.java to get them too).
  • GPSCoord: a class with the attributes latitude and longitude.
  • TripRecord: a class with attributes label, pickup_DateTime, pickup_Location, dropoff_Location and trip_Distance.
  • Cluster: a class with attributes clusterId, points, position and numPoints.

10 biggest clusters with MinPts = 5 and eps = 0.0003

These are the 10 biggest obtained are shown in the map below, each with its own colour.

Screenshot 2022-03-18 at 10 08 10

Link to map: https://www.google.com/maps/d/edit?mid=1kfZBIcvRJEtT0D0xaKl4MxH1cece_yz8&usp=sharing

dbscan-taxi-clustering-java's People

Contributors

celinewmk avatar

Stargazers

 avatar

Watchers

 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.