Skip to content
andry-devPublic

About

Predicting Accidents In Rome

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Accidents In Rome

Requirements

Datasets are needed to run the notebook. You can either download them from Roma Open Data's site and then run the preprocessing script. Otherwise download a pre-processed ready for use version from the Releases page of this repository.

For running the scripts and the notebook you need a Python 3.9+ installation with Pandas and a container runtime like Docker or Podman.

Preprocessing data

Since many rows in the accidents don't have a coordinate but just a street name, we need to obtain the coordinates ("geocoding") by running a Nominatim instance. To do so please run the following:

# Run Nominatim
./scripts/run-nominatim.sh

# Do the pre-processing
./scripts/preprocessing.py datasets/raw

Running the notebook

From the root directory:

./scripts/run-jupyter.sh

References

About

Predicting Accidents In Rome

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages