Help Center> RES> User Guide> Custom Scenario> Algorithm and Parameter Description> Ranking Strategy - Offline Feature Engineering

Ranking Strategy - Offline Feature Engineering

Table 1 Parameters of feature engineering

Parameter

Description

Name

The name of a custom offline feature engineering job, which can contain letters, digits, underscores (_), spaces, or hyphens (-) and cannot start or end with a space. The name can contain up to 64 characters.

Description

A description of the feature engineering.

User Feature To Be Extracted

The ranking model requires data to be processed by feature engineering. Select user features required by the ranking model. Unselected user features will not be processed.

NOTE:

The number of discrete ranges cannot exceed 100. Set the parameter appropriately based on business requirements.

Click to add user features. Select a feature from the drop-down list and configure relevant parameters. When Feature Value Type is StrArray, you can customize the preserved values as required. The following describes the optional parameters of other types:

  • Equidistant discrete: Enter the values for Min. Value, Max. Value, and Distance as needed. For example, if you want to create an equidistant age range, set the Min. to 1, the Max. to 100, and the Distance to 10, to make 10 years of age a discrete distance.
  • Normalization: Specify the values for Min. Value and Max. Value based on business requirements. For example, to normalize the values of "weight", set Min. Value to 50 and Max. Value to 200. If the specified value x is within this range, the following formula is used: x_new = (x - 50) / (200-50). If the value x is not within this range, it will be considered an abnormal value. For example, if value x equals 80, x_new = 0.2.
  • Custom discrete: Specify the discrete points based on service requirements. For example, if you want to create a custom discrete range for "age", set Discrete interval to 3, 9, and 15. Click to add discrete intervals.
  • Non- discrete: No normalization or data processing is performed.

Item Feature To Be Extracted

The ranking model requires data to be processed by feature engineering. Select item features required by the ranking model. Unselected item features will not be processed.

NOTE:

The number of discrete ranges cannot exceed 100. Set the parameter appropriately based on business requirements.

Click to add item features. Select a feature from the drop-down list and configure relevant parameters. When Feature Value Type is StrArray, you can customize the preserved values as required. The following describes the optional parameters of other types:

  • Equidistant discrete: Enter the values for Min. Value, Max. Value, and Distance as needed. For example, if you want to create an equidistant discrete range for "order price", set Min. Value to 1, Max. Value to 100, and the Distance to 10, to make the interval CNY 10 a discrete distance.
  • Normalization: Specify the values for Min. Value and Max. Value based on business requirements. For example, to normalize the values of "weight", set Min. Value to 50 and Max. Value to 200. If the specified value x is within this range, the following formula is used: x_new = (x - 50) / (200-50). If the value x is not within this range, it will be considered an abnormal value. For example, if value x equals 80, x_new = 0.2.
  • Custom discrete: Specify discrete points based on service requirements. For example, if you want to create a custom discrete range for "order price", set the discrete interval to 0-150, 151-200, and 201-250. Click to add discrete intervals.
  • Non- discrete: No normalization or data processing is performed.

Deduplication Method

The deduplication method for multiple records of a behavior performed by a user on an item. If you select Absolute Weight, only the behavior record with the highest absolute weight is retained. If you select Date, the latest behavior record in a specified time range is retained.

  • Absolute Weight: The record with the highest absolute weight value is retained.
  • Date: The latest data in the specified time range is retained.
    • Time Type: You can select the deduplication period based on site requirements. The options are Day, Week, and Month. The default value is Day.
    • Monday As the First Day: Behavior data is deduplicated by week. If this parameter is set to Yes, Monday is the first day. If this parameter is set to No, Sunday is the first day. Retain one latest data record every week.

Division of Training and Test Sets

The data is divided into training sets and test sets based on the time ratio or quantity ratio.

  • Time Ratio: If you want to divide the dataset by time, first divide the time span of all data into two time periods by a certain percentage, with the data in the first time period being used as the training dataset and the data for the second time period being used as the test dataset.
  • Quantity Ratio: All data is randomly divided into the training set and test set based on the quantity ratio.

Training Data Ratio

The ratio of the training set to the entire training set. The default value is 0.7.

Test Data Ratio

The ratio of the test set to the entire training set. The default value is 0.3.

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.