Coder Social home page Coder Social logo

ethanol-cx / heterogeneous-crime-prediction-tool Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 36.16 MB

A web-based tool that predicts crimes based on heterogeneous spatial patterns

Python 48.82% HTML 3.87% JavaScript 43.37% CSS 1.54% Shell 2.40%
crime-prediction spatial-temporal-forecasting django python arima-forecasting lstm-neural-networks

heterogeneous-crime-prediction-tool's Introduction

Heterogeneous Crime Prediction Visualization Tool

Table of Contents

Introduction

This is a crime prediction visualization tool that allows users to provide crime data, filter data, and see the process of clustering. This relies on a crime prediction method and an evaluation metric that are proposed by the Data Science Lab at USC. Technologies/packages used: Django, Mapbox GL JS, Spectre.css, jQuery, Keras(tensorflow backend), Scikit-learn. The tool needs to be used when connected to the internet.

Getting Started

Please follow these steps before running the code for the first time.

  1. Install Python 3
  2. It is strongly recommended to use virtualenv to manage packages for this tool. Please see [virtualenv] for more details. If you would use virtualenv, you would need to activate it before
  3. Install required packages that are listed in requirements.txt. If you have pip installed, you could run pip install -r packages.txt to install all the packages.
  4. Start the server by python djmaps/manage.py runserver. The application will appear in http://127.0.0.1/index
  5. Open up the browser and use the tool! There are few things to notice:
    • Please upload the data you would like to use first. The data has to be formatted in a JSON input file with the following format: [[<Type>, <Latitude>, <Longitude>, <Date: mm/dd/yyyy>]]
    • The sample DPS data is located in: djmaps/maps/templates/DPSUSC.json.
    • All the datapoints provided that are outside of the USC "border area" that we defined will be ignored.

heterogeneous-crime-prediction-tool's People

Contributors

ethanol-cx avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

kylechua ollawone

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.