Giter Site home page Giter Site logo

seattle_police's Introduction

Seattle Police Terry Stops

Magnus Ziegler [email protected]

Overview

This repository contains a training project used to explore the use of the FastAPI package for basic client-server relationships in combination with Dash for a basic dashboard/UI.

The Seattle Police dataset represents records of police reported stops under Terry v. Ohio, 392 U.S. 1 (1968). Each row represents a unique stop.

Each record contains perceived demographics of the subject, as reported by the officer making the stop and officer demographics as reported to the Seattle Police Department, for employment purposes.

Where available, data elements from the associated Computer Aided Dispatch (CAD) event (e.g. Call Type, Initial Call Type, Final Call Type) are included.

Specifics

  • /notebooks: project notebook for exploration and basic analysis
  • /client: dash-app that acts as the client
  • /server: fastAPI server that performs, stores, and reports the results of queries on the dataset
  • /data: original archive zip file, pickled pandas dataframe, schema, and csv
  • /models: saved scikitlearn-derived model and encoder in joblib format

To start the project, run server/main.py to start the server, and then client/app.py to start the UI client.

Improvements

  • Improved UI/UX in the dash app, maybe with visuals to make the scenario generation more interesting
  • report the prediction probability from the model
  • report query stats
  • re-organize server code to keep only the endpoints in main.py, and shift support functions to a secondary module

seattle_police's People

Stargazers

Magnus Ziegler 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.