Skip to content

rmlowe/traffic-cameras-k-means

Repository files navigation

Clustering locations of traffic cameras in Hong Kong using Amazon SageMaker and the k-means algorithm

This project contains a Jupyter notebook, together with the relevant geospatial data, that demonstrates how to use Amazon SageMaker and the k-means alogrithm to determine clusters for the locations of traffic cameras in Hong Kong.

Below is an example visualisation for k = 15, with red dots representing traffic camera locations, and blue triangles representing cluster centroids.

Traffic camera locations and cluster centroids in Hong Kong

For instructions on how to run this using a SageMaker Notebook, see here. Note that you will need to ensure that the notebook instance is using a role that has permission to write to the S3 bucket specified using the bucket_name variable.

About

Clustering geolocation data using Amazon SageMaker and the k-means algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published