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

Ranking Strategy - Offline Ranking Model

Overview

A ranking strategy trains ranking models that are used to rank items in the retrieved candidate sets to optimize their ranking sequences in sets.

Logistic Regression (LR)

As a generalized linear regression analysis model, LR is often used in data mining, automatic disease diagnosis, and economic prediction. The LR algorithm uses a sigmoid activation function on the basis of linear regression to map the output value to a range from 0 to 1. It is a common binary algorithm in the machine learning field.

Table 1 Parameters of LR

Parameter

Description

Name

The name of a custom strategy, 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 strategy.

Max. Iterations

Max. number of iterations during model training. The default value is 50.

Iterations at Early Stopping

If the value of AUC is not increased after N rounds of iterations in a test set, the iteration stops and the training ends. The default value is 5.

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Avg. Value is set to 0 by default.

    If normal is selected, Standard Deviation is set to 0.001 by default.

  • uniform

    If uniform is selected, Min. Value is set to -0.001 by default.

    If uniform is selected, Max. Value is set to 0.001 by default.

  • xavier

    The initial weight of the neuron is initialized to a uniform (Gaussian or random) distribution with a mean value of 0 and variance of Var(wi) = 1/nin, where nin is the number of inputs of the neuron.

Optimizer Type

  • grad
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If grad is selected, Learning Rate is set to 0.001 by default.
  • adam
    Adaptive Moment Estimation is an optimization algorithm that combines the advantages of AdaGrad and RMSProp and uses the First Moment Estimation (average value of the gradient) and the Second Moment Estimation (variance of the gradient) to calculate the update step in sequence.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adam is selected, Learning Rate is set to 0.001 by default.
    • Numerical Constant: a small constant that is set to ensure the value stability. If adam is selected, Numerical Constant is set to 1e-8 by default.
  • adagrad
    Adagrad is an algorithm for gradient-based optimization that performs smaller updates (low learning rates) for parameters associated with frequently occurring features, and larger updates (high learning rates) for parameters associated with infrequent features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adagrad is selected, Learning Rate is set to 0.001 by default.
    • Initial Gradient Sum: adjusts the learning step size. If adagrad is selected, Initial Gradient Sum is set to 0.1 by default.
  • ftrl
    Follow the Regularized Leader is a common optimization algorithm that processes data at a super-large scale for online learning with quantity of sparse features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If ftrl is selected, Learning Rate is set to 0.1 by default.
    • Initial Gradient Sum: adjusts the learning step size. If ftrl is selected, Initial Gradient Sum is set to 0.1 by default.
    • Lambda1: overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda1 is set to 0 by default.
    • Lambda2: overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda2 is set to 0 by default.

Lambda2

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. Lambda2 is set to 0 by default.

Regular Loss Calculation Mode

Calculation mode for regular loss. The value can be full and batch.

  • full indicates that all parameters are calculated.
  • batch indicates that only the parameters in the current batch are calculated.
    NOTE:

    The calculation speed in batch mode is faster than that in full mode.

Retrain

Retraining does not affect the first training result. It only affects the result of the rerun task.

  • Yes: Clear the model result of the previous round and start training again.
  • No: Import the training result of the previous round to continue the training. The default value is Yes. If underfitting occurs after the first training, select No for the next round of training.

Batch size

Number of samples selected for a training

Split Training Datasets

The number of child datasets divided from a complete training dataset. The child datasets are trained in sequence.

DeepFM

DeepFM is the combination of FM and a deep neural network for learning their feature expressions. It also learns high-order and low-order feature crosses to achieve accurate feature cross learning for precise recommendation.

Table 2 Parameters of DeepFM

Parameter

Description

Name

The name of a custom strategy, 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 strategy.

Max. Iterations

Max. number of iterations during model training. The default value is 50.

Iterations at Early Stopping

If the value of AUC is not increased after N rounds of iterations in a test set, the iteration stops and the training ends. The default value is 5.

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Avg. Value is set to 0 by default.

    If normal is selected, Standard Deviation is set to 0.001 by default.

  • uniform

    If uniform is selected, Min. Value is set to -0.001 by default.

    If uniform is selected, Max. Value is set to 0.001 by default.

  • xavier

    The initial value of the initialization is initialized to a uniform (Gaussian or random) distribution with a mean value of 0 and variance of Var(wi) = 1/nin, where nin is the number of inputs of the neuron.

Optimizer Type

  • grad
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If grad is selected, Learning Rate is set to 0.001 by default.
  • adam
    Adaptive Moment Estimation is an optimization algorithm that combines the advantages of AdaGrad and RMSProp and uses the First Moment Estimation (average value of the gradient) and the Second Moment Estimation (variance of the gradient) to calculate the update step in sequence.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adam is selected, Learning Rate is set to 0.001 by default.
    • Numerical Constant: a small constant that is set to ensure the value stability. If adam is selected, Numerical Constant is set to 1e-8 by default.
  • adagrad
    Adagrad is an algorithm for gradient-based optimization that performs smaller updates (low learning rates) for parameters associated with frequently occurring features, and larger updates (high learning rates) for parameters associated with infrequent features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adagrad is selected, Learning Rate is set to 0.001 by default.
    • Initial Gradient Sum: adjusts the learning step size. If adagrad is selected, Initial Gradient Sum is set to 0.1 by default.
  • ftrl
    Follow the Regularized Leader is a common optimization algorithm that processes data at a super-large scale for online learning with quantity of sparse features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If ftrl is selected, Learning Rate is set to 0.1 by default.
    • Initial Gradient Sum: adjusts the learning step size. If ftrl is selected, Initial Gradient Sum is set to 0.1 by default.
    • Lambda1: overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda1 is set to 0 by default.
    • Lambda2: overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda2 is set to 0 by default.

Lambda2

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. Lambda2 is set to 0 by default.

Regular Loss Calculation Mode

Calculation mode for regular loss. The value can be full and batch.

  • full indicates that all parameters are calculated.
  • batch indicates that only the parameters in the current batch are calculated.
    NOTE:

    The calculation speed in batch mode is faster than that in full mode.

Embedding Size

Length of the factorized feature embedding. Embedding Size is set to 10 by default.

Neural Network Structure

Number of neural network layers and the number of neuron nodes at each layer. Neural Network Structure is set to 400,400,400.

Activation Function

Function in a neural network that maps a value of a neuron or a group of neurons to an output value.

  • relu
  • tanh
  • sigmoid

Neuron Retention Probability

Probability at which neurons are kept in the forward propagation process of the neural network. Neuron Retention Probability is set to 0.8 by default.

Retrain

Retraining does not affect the first training result. It only affects the result of the rerun task.

  • Yes: Clear the model result of the previous round and start training again.
  • No: Import the training result of the previous round to continue the training. The default value is Yes. If underfitting occurs after the first training, select No for the next round of training.

Batch size

Number of samples selected for a training

Split Training Datasets

The number of child datasets divided from a complete training dataset. The child datasets are trained in sequence.

AutoGroup

The AutoGroup technology can be used to explore high-degree feature interaction combinations, explore the relationships between multiple features in a deeper level, and improve model ranking effects.

Table 3 Parameters of AutoGroup

Parameter

Description

Name

The name of a custom strategy, 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 strategy.

Max. Interactions

Max. feature interactions of algorithm exploration. For example, when Max. Interactions is set to 4, the algorithm will explore the second, third, and fourth degrees of iterations. The default value is 3.

Embedding Size of Each Degree

The embedding length used for feature interaction of each degree. The quantity must correspond to the maximum interaction order. The default value is 10,60,80.

Hash Length

The number of groups selected for feature interaction of each degree. The quantity must correspond to the maximum interaction order. The default value is 10,60,80.

Feature Interaction Penalty Coefficient

Penalty coefficient of the output value of the feature interaction layer, which is used to prevent overfitting. The default values are 0.0001, 0.0001, 0.0001.

Neural Network Structure

Number of neural network layers and the number of neuron nodes at each layer. Neural Network Structure is set to 400,400,400.

Activation Function

Function in a neural network that maps a value of a neuron or a group of neurons to an output value.

  • relu
  • tanh
  • sigmoid

Neuron Retention Probability

Probability at which neurons are kept in the forward propagation process of the neural network. Neuron Retention Probability is set to 0.8 by default.

Optimizer

  • grad
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If grad is selected, Learning Rate is set to 0.001 by default.
  • adam
    Adaptive Moment Estimation is an optimization algorithm that combines the advantages of AdaGrad and RMSProp and uses the First Moment Estimation (average value of the gradient) and the Second Moment Estimation (variance of the gradient) to calculate the update step in sequence.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adam is selected, Learning Rate is set to 0.001 by default.
    • Numerical Constant: a small constant that is set to ensure the value stability. If adam is selected, Numerical Constant is set to 1e-8 by default.
  • adagrad
    Adagrad is an algorithm for gradient-based optimization that performs smaller updates (low learning rates) for parameters associated with frequently occurring features, and larger updates (high learning rates) for parameters associated with infrequent features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If adagrad is selected, Learning Rate is set to 0.001 by default.
    • Initial Gradient Sum: adjusts the learning step size. If adagrad is selected, Initial Gradient Sum is set to 0.1 by default.
  • ftrl
    Follow the Regularized Leader is a common optimization algorithm that processes data at a super-large scale for online learning with quantity of sparse features.
    • Learning Rate: a hyper-parameter that controls the step size of the optimizer in the optimization direction. If ftrl is selected, Learning Rate is set to 0.1 by default.
    • Initial Gradient Sum: adjusts the learning step size. If ftrl is selected, Initial Gradient Sum is set to 0.1 by default.
    • Lambda1: overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda1 is set to 0 by default.
    • Lambda2: overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, Lambda2 is set to 0 by default.

Structure Optimizer

For details, see the details of parameter Optimizer.

Regular Loss Calculation Mode

Calculation mode for regular loss. The value can be full and batch.

  • full indicates that all parameters are calculated.
  • batch indicates that only the parameters in the current batch are calculated.
    NOTE:

    The calculation speed in batch mode is faster than that in full mode.

Lambda2

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. Lambda2 is set to 0 by default.

Lambda2 of Embedding Size

Lambda2 used by the embedding layer. The function of this parameter is similar to that of Lambda2. It is set to 0.001 by default.

Wide Part Lambda2

Lambda2 used by the wide layer. The function of this parameter is similar to that of Lambda2. It is set to 0.001 by default.

Max. Iterations

Max. number of iterations during model training. The default value is 50.

Iterations at Early Stopping

If the value of AUC is not increased after N rounds of iterations in a test set, the iteration stops and the training ends. The default value is 5.

Retrain

Retraining does not affect the first training result. It only affects the result of the rerun task.

  • Yes: Clear the model result of the previous round and start training again.
  • No: Import the training result of the previous round to continue the training. The default value is Yes. If underfitting occurs after the first training, select No for the next round of training.

Batch size

Number of samples selected for a training

Split Training Datasets

The number of child datasets divided from a complete training dataset. The child datasets are trained in sequence.

Merge Multi-value Feature

Merge multiple embeddings of a multi-value feature into one embedding.

Use Wide Part

Whether to use the linear part in the model architecture.

Fix Hash Structure

Whether to fix the structure parameter. The structure parameter is not fixed by default. Unless otherwise specified, you are advised to retain the default value.