Traffic stop and crash exploration

With the k-means and PCA theory under our belts, let's see what we can do with open data. If you remember, we had a dataset for traffic stops. Let's bring in two more datasets: the number of car crashes over the same time period, and also the amount of precipitation on the day of the crash/ticket.

Preparing the script and the data

In Visual Studio, create a new Visual F# Library Project called Hack4Good.Traffic:

Preparing the script and the data

Once the project is created, rename the Script.fsx file to Clustering.fsx:

Preparing the script and the data

Next, open the NuGet Package Manager ...

Get Mastering .NET Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.