AdventureWorks

In this section, we are going to take the knowledge that we gained in Chapter 5, Time Out – Obtaining Data, to extract and transform data and apply both k-NN and Naïve Bayes machine learning models. Let's see if none, one, or both methodologies will help us increase cross-sales.

Getting the data ready

Go into Visual Studio and add another script called AdventureWorks.fsx. Open up the script, remove all of the contents, and open NuGet Package Manager console. In the package manager, run the following lines:

PM> Install-Package FSharp.EntityFramework.MicrosoftSqlServer –Pre
PM> Install-Package fslab
PM> Install-Package FSharp.Data.SqlClient
PM> Install-Package Microsoft.SqlServer.Types

Go back to the script file and add the following ...

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.