Filter Rule

A filter rule is used to configure the filter modes of the candidate sets to filter out inappropriate candidates. For each behavior that needs to be filtered, a list of items that a user performed the behavior on is generated. Use AND or OR to perform logic analysis on the item list and generate a user-item filtering table.

Table 1 Parameters

Parameter

Description

Name

The name of a custom filter rule, which contains 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 filter rule to be created.

Whitelist Address

The path where whitelists reside. Items whose IDs are excluded in whitelists cannot appear in the final recommendation lists. The whitelist content must be stored on OBS.

Frequency

Needed when you specify the filter rules for the generation of a personalized candidate set. For example, content such as news you viewed in the past three days can be filtered out from the final recommendation lists. Click to add historical behaviors to be filtered out and click to delete the behaviors.

The options are as follows:

  • view indicates that you browsed an item.
  • click indicates you clicked an item.
  • collect indicates that you added an item to your favorites.
  • uncollect indicates that removed an item from your favorites.
  • search_click indicates that you clicked an item in the search results.
  • comment indicates that you commented on an item.
  • share indicates that you shared an item with others.
  • like indicates that you gave an item a thumbs-up.
  • dislike indicates that you gave an item a thumbs-down.
  • grade indicates that you graded an item.
  • consume indicates that you bought an item.
  • use indicates that you watched videos/listened to music/read something.
  • download indicates that you downloaded something from websites.
  • tip indicates that you gave somebody a reward.
  • subscribe indicates that you followed somebody.

Filter Logic

Logic between frequencies. The options are as follows:

  • AND. For example, AND means an item has been liked more than three times within seven days and consumed more than three times within seven days.
  • OR. For example, OR means an item has been liked more than three times within seven days or consumed more than three times within seven days.

Max. Recommendation Results

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