Creating recommendation models

This page describes how to create a new recommendation model.

If you already have a recommendation model of the correct type, and you want to get predictions from it from a different location in your site, you can create a new placement for it rather than creating a new model. Learn more.

Introduction

When you want to use a new recommendation type for getting predictions, you must create a new recommendation model and provide sufficient user event data for it to be trained. You create placements for your new model, and when the model has finished training, request predictions from those placements.

For an overview of the process of working with Recommendations AI, see Implementing a Recommendations AI solution.

Creating a recommendation model

You add a new recommendation model by using the Google Cloud Console. You can have up to 20 models per project, and up to 10 of them can be active (not paused) at any time. Learn more about pausing a model.

You can start up to 5 model operations per minute. Limited model operations include creation, deletion, pause, and resume.

Before you can create a new model, you must have met the requirements for creating a new model.

To create a new model:

  1. Go to the Recommendations AI Models page in the Google Cloud Console.
    Go to the Recommendations AI Models page

  2. Click Create model.

  3. Enter a name for your model.

    The name must be 1024 characters or less, and can contain only alphanumeric characters, underscores, hyphens, and spaces.

  4. Choose the recommendation type you want this model to be trained to provide, and its business objective.

  5. If you want to control your diversification level and price reranking setting, click Show advanced options and select your settings. Learn more.

  6. Click Create to create the new recommendation model.

    If you have uploaded sufficient user event data of the required type, the initial model training and tuning begins. Initial model training and tuning takes 2-5 days to complete.

    You can create placements for your new model before training completes, but they will serve only "dry run" predictions until the initial training and tuning completes and the model becomes active.

Requirements for creating a new recommendation model

The first time you use a specific recommendation type for your site, you are training a new machine learning model, which requires sufficient training data, as well as time to train and tune the model. The following steps are required to start using a new recommendation type:

  1. Import your catalog to Recommendations AI, if you haven't already, and implement processes to keep the uploaded catalog up to date.
  2. Start recording user events to Recommendations AI, if you haven't already, making sure to follow the best practices for recording user event data.
  3. Identify the recommendation type and optimization objective you want to use.
  4. Determine the user event data requirement for your desired recommendation type and objective.
  5. Import historical user event data to meet the minimum event data requirements, or wait until the user event data collection meets the minimum requirements.
  6. Create your model and your placements.

    At this point, Recommendations AI initiates model training and tuning. Initial model training and tuning takes 2-5 days to complete.

  7. Confirm that your model is working correctly using prediction preview.

  8. Create your A/B experiment.

User event data requirements

The type of user events you import, and the amount of data you need, depends on your recommendation (model) type and your optimization objective. When you reach the minimum data requirement, you can begin model training. The data collection window represents the maximum length of time Recommendations AI looks back for user events; importing more historical data has no effect on model quality.

Model type Optimization objective User event types Minimum data requirement Data collection window
Recommended for you Click-through rate detail-page-view
add-to-cart
purchase-complete
home-page-view

1 week, with an average of 10 detail-page-view events per joined catalog item.

OR

60 days with at least one joined detail-page-view event.

3 months
Recommended for you Conversion rate detail-page-view
add-to-cart
purchase-complete
home-page-view

1 week, with an average of 10 add-to-cart events per joined catalog item.

OR

60 days with at least one joined add-to-cart event.

3 months
Others you may like Click-through rate detail-page-view

1 week, with an average of 10 detail-page-view events per joined catalog item.

OR

60 days with at least one joined detail-page-view event.

3 months
Others you may like Conversion rate add-to-cart
detail-page-view

1 week, with an average of 10 add-to-cart events per joined catalog item.

OR

60 days with at least one joined add-to-cart event.

3 months
Frequently bought together Any purchase-complete
detail-page-view

An average of 10 purchase-complete events per joined catalog item.

OR

90 days of purchase-complete events.

12 months

What's next