Coder Social home page Coder Social logo

cleaning_agent_detection's Introduction

Cleaning Agent Detection Script

This script is a way to capture the effectiveness of MBTA elevator sensors that detect the presence of urine and cleaning agents.

Functionality

This project is a command line script written in Python.

The script reads 2 file paths as input (Sensor Data & Maintenance Request export), the files can be in CSV for XLSX format.

The two files are compared to produce the following Metrics:

  1. Count of True Positives

    • There is a sensor alert for cleaning agent detection and a corresponding cleaning work order.
  2. Count of False Positives

    • There is a sensor alert for cleaning agent detection, but no corresponding cleaning work order.
  3. Count of False Negatives

    • There is no sensor alert for cleaning agent detection, but there is a cleaning work order.

Comparison Logic


Success Metric Sensor Alert Work Order Timestamp
True Positive Yes Yes Work Order timestamp is within 1 hour, after 1st Sensor Alert
False Positive Yes No No work order within 1 hour, after 1st Sensor Alert
False Negative No Yes No Sensor Alert within 1 hour, before Work Order timestamp

Developer Usage

This repo requires python3 to be installed and uses pipenv to manage dependencies.

Install pipenv:

python3 -m pip install --user pipenv

Clone repo, inside of repo directory install pipenv dependencies:

pipenv install

Run script:

./clean-agent.py

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.