Retrieval Strategy

A retrieval strategy refers to a preliminary selection among a large number of items for the final generation of a personalized candidate set for each user. A retrieval strategy is an algorithm strategy that generates recommendation candidate sets through big data computing or deep training. Multiple retrieval modes are built inside the retrieval strategy. You can select a retrieval mode appropriate for your business environments.

Nearline Retrieval

Nearline retrieval is used to analyze users' interests in a short period of time based on real-time user behaviors and recommends content to users.
Table 1 Nearline retrieval parameters

Parameter

Description

Name

The name of a nearline retrieval, which consists of letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name contains up to 64 characters.

Description

A description of the nearline retrieval strategy.

ItemCF Job Name

No default value.

The results generated by the itemCF jobs can be used to further increase the candidate sets to be retrieved.

Time Filter

If Time Filter is selected, candidate sets will be filtered by time. This function is disabled by default.

If you enable it, set the following parameters:
  • Filtering Field: The options are publishTime and expireTime.
  • Retention Period: The unit is day. The value ranges from 1 to 15.

In the retrieval results, only the results that meet the following condition are retained: Current time - publishTime or expireTime < Retention Period.

Retrieval Field

Retrieves candidate sets based on the selected fields.

Options are generated in the Retrieval Field drop-down list only when the corresponding item features have been applied to the interest feature. For example, if you apply the item feature "tags" to the interest feature, the interested_tags option is generated in the drop-down list of Retrieval Field. A retrieval field has multiple values, but only one of them is used by default. You can add values if needed. When a retrieval field is selected, it is used by default. The number of the retrieved field is 1, which can be adjusted based on site requirements.

  • Restriction 1: 1 ≤ Number of retrieval fields ≤ 5
  • Restriction 2: 1 ≤ Number of retrieval field values ≤ 10

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

This parameter is used in the recommended candidate sets of Output Data.

Alarm

If the Alarm function is enabled, an alarm is generated and sent to you when an exception occurs. This function is disabled by default. If you enable it, set the following parameters:

  • Topic: Select an SMN topic. If you do not have any available topics, go to the SMN console to create a topic.

Recommendation Based on Comprehensive Behavior Popularity

The Recommendation Based on Comprehensive Behavior Popularity strategy works in a pattern that is similar to the Recommendation Based on Specific Behavior Popularity strategy. The difference is that the former uses the weighted popularity of several behaviors while the latter uses the popularity of a specific behavior.
Table 2 Parameters for recommendation based on comprehensive behavior popularity

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Data Source Type

Data source types include user features and item features. Data is filtered based on data sources to select required features. You can choose to group users or items. Multiple features can be configured in a group.

User Feature: Select a feature from the drop-down list for retrieval calculation. Example: " user_meta_list": ["gender","age"]

  • Item Feature: Select a feature from the drop-down list for retrieval calculation. Example: " item_meta_list": ["weight","score"]

Behavior Statistics Method

Method for recording item statistics.

  • pv: page views or clicks, measuring the number of web pages visited by website users. Each user can generate multiple records for the same item.
  • uv: unique visitors, determined by counting the number of individual users accessing a site within the reporting period. Only one record is generated for a visitor, regardless of how often they visit.

Ranking Algorithm Type

Whether to attenuate the item popularity over time. The options are as follows:

  • normal
  • time
    • Weak Gravity Factor: If Ranking Algorithm Type is set to time, the default value of Weak Gravity Factor is 1.8. A larger value indicates faster weakening.

Max. Recommendation Results

Max. number of recommendation results that can be generated.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

ItemCF Recommendation

Item-based collaborative filtering recommendation uses the classic recommendation algorithm ItemCF to retrieve items.
Table 3 Parameters of ItemCF recommendation

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Nearest Neighbors

The ItemCF algorithm is used to generate a similarity matrix that contains several items of highest similarity for each item. The default value is 100.

Similarity Degree

Combined parameters used to filter the nearest neighbors of an item. The larger the value, the stricter filter conditions. The value is an integer ranging from 1 to 10. The default value is 3.

Similarity Distance

Combined parameters used to filter the nearest neighbors of an item. The smaller the value, the stricter filter conditions. The value is an integer ranging from 1 to 100. The default value is 20.

User Activeness

Activeness threshold for filtering users. The value ranges from 1 to 10,000. The default value is 1.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Time Range

Number of days in which behavior data is obtained from the data source to calculate the similarity. By default, all data is obtained.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

UserCF Recommendation

User-based collaborative filtering recommendation uses the classic recommendation algorithm UserCF to perform retrieval. The user-based collaborative filtering algorithm detects users' preferences (such as purchase, favorites, content comment, and sharing) based on users' historical behaviors, and measures and scores the preferences. The relationship between users is calculated based on the attitudes and preferences of different users for the same item. Items are recommended to users who have the same preferences.

For example, two users both buy three books (A, B, and C) and both give five-star reviews. Therefore, the two users are of the same type. Books that one user reads can be recommended to the other.
Table 4 Parameters of UserCF recommendation

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Nearest Neighbors

The UserCF algorithm is used to generate a similarity matrix that contains several users of highest similarity for each user. The default value is 100.

Similarity Degree

Combined parameter used to filter the nearest neighbors of a user. The larger the value, the stricter filter conditions. The value is an integer ranging from 1 to 10. The default value is 3.

Similarity Distance

Combined parameter used to filter the nearest neighbors of a user. The smaller the value, the stricter filter conditions. The value is an integer ranging from 1 to 100. The default value is 20.

Item Activeness

Activeness threshold for filtering items. The value ranges from 1 to 10,000. The default value is 1.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Time Range

Number of days in which behavior data is obtained from the data source to calculate the similarity. By default, all data is obtained.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

ALS-based MF Recommendation

The ALS-based MF recommendation strategy uses the user-item relationships as the original matrix and the ALS algorithms to decompose the original matrix. The decomposed results are expressed in the form of user vectors and item vectors that can be used to generate a new rating matrix to produce a result list storing items with the highest scores
Table 5 Parameters of ALS-based MF recommendation

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Embedding Size

Used by the ALS algorithms to specify the embedding size of users and items. If an offline computing task fails, set this parameter to a value less than 10. The default value is 10.

Max. Iterations

Max. iterations in iteration optimization. If an offline computing task fails, set this parameter to a value less than 10. The default value is 10.

Optimization Lambda

Parameter used by the ALS algorithm to specify the regularization coefficient for the cost parameter in the optimization objective to avoid fitting. The default value is 0.01.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

Business Rule-Historical Behavior-based Recommendation

The business rule - historical behavior-based recommendation strategy can select items on which you have performed operations, for example, items that you clicked five times. This strategy can be applied to "content recommendations" and "e-commerce recommendations".
Table 6 Parameters of business rule - historical behavior - based recommendation

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Frequency

  • Select behavior data of the N days before the latest date to calculate user preferences. The value must be no less than 30 days.
  • Select a behavior from the drop-down list box.
  • Min. Times indicates the minimum number of behaviors. Only items whose behavior occurrences are greater than the value of this parameter are selected. The default value is 1.
  • Max. Times indicates the maximum number of behaviors. Only items whose behavior occurrences are less than the value of this parameter are selected. The default value is 10,000.

Click to add a frequency. Click to delete a frequency.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

Business Rule-Manual Import

The business rule - manual import strategy helps you customize item lists that are used as the candidate sets for online services.
Table 7 Parameters of business rule - manual import

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

OBS Address

The address where you can select custom item lists. Click . In the dialog box that is displayed, select the OBS bucket and folder for storing the data.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

Feature Matching - based Retrieval Strategy

The feature matching - based retrieval strategy uses user-profile-related attributes and item-profile-related attributes to perform matching tasks and retrieve items with high matching degrees.

Table 8 Parameters of feature matching - based retrieval strategy

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Matched Feature Pair

A pair of features that associated a user with an item. Set this parameter according to your actual situation. If the feature similarity of the matched item and user is high, the memory needs to be improved.

  • Alias: a string of 1 to 64 characters
  • User Feature: a string of 1 to 20 characters.
  • Item Feature: a string of 1 to 20 characters.
  • Weight: The weight determines the matching degree of different item attributes. The value ranges from 0.01 to 1 and contains two decimal places.

You can click to access the page for adding a matched feature pair. Set the alias, user feature name, item feature name, and weight of the feature pair.

Buckets in One Group

Number of buckets in a recommendation group. The larger the value, the more strictly the similar items are filtered. The default value is 5.

Groups of Buckets

Number of bucket groups. The smaller the value, the more strictly the similar items are filtered. The default value is 20.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.

UCB-based Retrieval Strategy

The UCB-based recommendation strategy, with comprehensive consideration of behavior types and amounts in User Operation Behavior Table, calculates a score for each item and finally returns several items with the highest scores.
Table 9 Parameters of UCB-based retrieval strategy

Parameter

Description

Name

The name of a selected strategy, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain no more than 64 characters.

Description

A description of the strategy to be created.

Min. Behavior Count

Min. number of users who have performed operations on an item. A user only behaved on an item once. The default value is 30.

Compromise Parameter

A balancing parameter of two opposing situations that ranges from 0 to 1. In RES, alpha is a tradeoff parameter between exploration and exploitation. If the value of alpha is close to 0, it is more suitable to explore items that are likely valuable but less popular. If the value of alpha is close to 1, it is more suitable to deeply exploit the items with the highest scores. The default value is 0.5.

Max. Recommendation Results

Max. number of recommendation results that can be generated. The default value is 100.

This parameter is used in the recommended candidate sets of Output Data.

Schedule

Enable the schedule function to execute jobs repeatedly based on the configured schedule policy.

  • Scheduling Period: The value can be Day or Week.
  • Select Date: When Scheduling Period is set to Week, you can select any day from Monday to Sunday from the drop-down list.
  • Scheduled from: Select a specific scheduling time.