Tournament of Albums
Obviously, it is extremely important that I be able to rank all the albums in my music collection, but I have found it is too difficult to rank them all at once. This is my attempt to do it piecemeal, in small batches, with scores aggregated by applying my highly scientific probabilistic model.
The Tournament of Albums consists of three parts:
- A static web app, served from S3 and CloudFront.
- A read-only API, with one Lambda per endpoint.
- A data pipeline that picks up new match results, applies the model, and writes the scores to DynamoDB for the API to serve.
Data Packages
NJ OAG Use Of Force Data Package for R
This data package is a cleaned-up version of the NJ OAG Use of Force dataset available from https://www.njoag.gov/force/.
There is also an interactive dashboard built to illustrate the package: a map of New Jersey use-of-force reports. The source code is here.
NJ OAG Law Enforcement Officer Diversity Data Package for R
This data package is a cleaned-up version of the NJ OAG Law Enforcement Officer Diversity data available from https://www.njoag.gov/policerecruiting/: counts of officers and applicants by demographics, and each agency’s hiring and promotion practices, from 2021.
NJ Elections Data Package for R
This is a data package for R containing the results of statewide elections in NJ, from 2004 to 2025.
NJ Municipalities Data Package for R
This is a data package for R that contains every county and municipality in New Jersey, from 2000 to 2026.
NJ Law Enforcement Agencies Data Package for R
This is a data package for R containing a registry of New Jersey law enforcement agencies, from 2020: a stable ID for each agency, its names over time, the municipalities it polices, its FBI ORIs, and every spelling of it used in the NJ OAG datasets. The NJ OAG data packages above use its IDs, so their tables can be joined on agency.
APIs
NJ Municipalities API
This is an API that exposes the data in the NJMUNICIPALITIES data package for R. The source code is here.
NJ OAG Use of Force API
This is an API that exposes the data in the NJOAGUOF data package for R. The source code is here.
NJ Law Enforcement Agencies API
This is an API that exposes the data in the NJLEA data package for R. The source code is here.
NJ OAG Law Enforcement Officer Diversity API
This is an API that exposes the data in the NJOAGLEOD data package for R. The source code is here.