Deploying, training, and evaluating a predictive model

In this section, we will write code based on a physical data schema that we created in the previous section. In this section, we're going to use R scripting to create a recommender machine learning model. We're not going to explain all aspects of the R language but we will go through the elements that are important to build a fully-functioning machine learning model maintained by SQL Server.

In the previous sections, we configured ML Services on SQL Server and we also imported an external package called recommenderlab. The recommenderlab package, as its name suggests, is used for recommendations. The input for the recommender that is provided by this package is a matrix in the form of ...

Get Hands-On Data Science with SQL Server 2017 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.