The Code-4-Good application

Let's create a Windows application that helps people drive more safely. In addition, let's make the application "smart" so that it will progressively get more accurate. Let's start in Visual Studio with the project you have already created.

Machine learning assembly

Go into the Solution Explorer and rename Library1.fs to TrafficML.fs. Add a reference to System.Data, System.Data.Entity, System.Data.Linq, and FSharp.Data.TypeProviders:

Machine learning assembly

Adding references

Go into the TrafficML.fs file and enter the following code:

namespace Hack4Good.Traffic open System open System.Linq open System.Data.Linq open System.Data.Entity open Accord.MachineLearning ...

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.