Shourobkhan / London-Fire-Brigade

An unsupervised Machine learning model for clustering incidences reported to the London Fire Brigade

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The London Fire Brigade

image

LFB is the largest fire and emergency response team in the United Kingdom. Serving a larger part of London.

Any incident that is reported to this department is recorded and data updated on a public domain once in a fortnight.

The data.

The LFB dataset is available for public use.

At the time of writing this file, the data contained in a CSV file has a shape of 1048575 rows and 39 columns which is likely to increase in the future as incidences occur on daily basis.

Folder structure

Below is the folder structure of the London fire brigade project.
image

Download_data.py

This file is responsible for fetching the LFB data from the Uk gov data website, creating a data folder and extracting the zip archive.
We use patool library to extract the zip archive.
We have used a the taqaddum (tqdm for short) library to show download progress.

LFB-analysis.ipynb

This is the main file where we do everything from analysis to dimentionality reduction to clustering.

Execution

In the LFB-analysis.ipynb file, We start by importing the necessary libraries.

We go further to import the download_data.py file. This will help download and extract data. image

As shown above the file is imported as a module and downloads the data.

About

An unsupervised Machine learning model for clustering incidences reported to the London Fire Brigade


Languages

Language:Jupyter Notebook 100.0%Language:Python 0.0%