...

/

Personalizer - Prepare the Dataset and User Profile Method

Personalizer - Prepare the Dataset and User Profile Method

Learn to build a recommendation system using the Azure Personalizer SDK for Python.

Introduction

In this lesson, we’re going to build a recommendation system that will recommend different types of drinks to a user based on their actions and behaviors with the application. We’ll consider five different types of drinks to build the system.

Dependency

To work with the lessons in this chapter, the following python package dependency is required:

  • azure-cognitiveservices-personalizer

To know how to install these dependencies, refer to the Appendix section.

Implementation

To implement the personalizer service, we need to follow the below steps:

  • Step 1: We need to prepare the dataset. This data will contain the item/product that we want to recommend and the features of that product.
  • Step 2: We need to create actions using the RankableAction class. This class will ensure that the personalizer service can rank the action items.
  • Step 3: We need to get the user profile information. This information can consist of the user’s age, interests, user’s mood, etc.
  • Step 4: We need to build the personalizer loop that will help the personalizer model to
...