Ranking Strategy

Overview

A ranking strategy can train ranking models that are used to rank items in the retrieved candidate sets to optimize their ranking sequences in sets. A ranking model can be an LR, FM, FFM, or DeepFM model. The following section describes more details:

Creating a Ranking Strategy

Adding a Ranking Strategy describes how to create a ranking strategy.

Generally, it may take several minutes or tens of minutes to run the job. The duration depends on the amount of your selected data and resources.

You can switch to the ranking strategy list to view the basic information about ranking strategies. In the ranking strategy list, the status of the newly created job is Computing. When it changes to Successful, the job execution is complete. The generated candidate set ID will be used by the online service to generate a recommendation list. If the status of a ranking job changes to Failed, click the job name. On the job details page that is displayed, view the job logs and troubleshoot the faults.

Logistic Regression (LR)

As a generalized linear regression analysis model, logistic regression is often used in data mining, automatic disease diagnosis, and economic prediction. The logistic regression 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. For more details, see Logistic regression.

Table 1 Parameters

Parameter

Description

Computing Node

Type of compute resources.

Save Path of Root Directory

Root path for saving the trained models and log files.

Save Path of Training Data

OBS path for storing the training data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path for storing training files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Save Path of Test Data

OBS path for storing the test data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path storing test files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Feature Statistics File

File that records the number of features in each field. A complete path of the file is required. The file whose prefix is part-00000 is saved in the fields_feature_size directory under Result Save Path of the output data generated by the Ranking Training Sample Preprocessing operator in Feature Engineering.

Maximum Iterations

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

Iteration Rounds Before Stopping Trainings in Advance

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

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Average 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 Accumulative Sum: This parameter can adjust the learning step size. If adagrad is selected, Initial Gradient Accumulative 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 Accumulative Sum: This parameter can adjust the learning step size. If ftrl is selected, Initial Gradient Accumulative Sum is set to 0.1 by default.
    • L1 Regularization Coefficient: Overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L1 Regularization Coefficient is set to 0 by default.
    • L2 Regularization Coefficient: Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L2 Regularization Coefficient is set to 0 by default.

L2 Regularization Coefficient

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. L2 Regularization Coefficient 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.

Factorization Machine (FM)

Factorization Machine (FM) is a machine learning algorithm based on matrix factorization. It can automatically perform second-order feature crosses and learn the relationship between features without manual intervention, as well as solve the problem of sparse combination characteristics. For more details, see Factorization Machines.

Table 2 Parameters

Parameter

Description

Computing Node

Type of compute resources.

Save Path of Root Directory

Root path for saving the trained models and log files.

Save Path of Training Data

OBS path for storing the training data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path for storing training files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Save Path of Test Data

OBS path for storing the test data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path storing test files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Feature Statistics File

File that records the number of features in each field. A complete path of the file is required. The file whose prefix is part-00000 is saved in the fields_feature_size directory under Result Save Path of the output data generated by the Ranking Training Sample Preprocessing operator in Feature Engineering.

Maximum Iterations

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

Iteration Rounds Before Stopping Trainings in Advance

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

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Average 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 Accumulative Sum: This parameter can adjust the learning step size. If adagrad is selected, Initial Gradient Accumulative 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 Accumulative Sum: This parameter can adjust the learning step size. If ftrl is selected, Initial Gradient Accumulative Sum is set to 0.1 by default.
    • L1 Regularization Coefficient: Overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L1 Regularization Coefficient is set to 0 by default.
    • L2 Regularization Coefficient: Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L2 Regularization Coefficient is set to 0 by default.

L2 Regularization Coefficient

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. L2 Regularization Coefficient 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.

Latent Vector Length

Length of the factorized feature vector. Latent Vector Length is set to 10 by default.

Field-aware Factorization Machine (FFM)

Field-aware Factorization Machine (FFM) is an improved version of FM. Each feature of FM can learn only one implicit vector from all fields while each feature of FFM can learn an implicit vector from every other field. Therefore, FFM can provide higher precision, but it is more likely to incur overfitting. For more details, see Field-aware Factorization Machines for CTR Prediction.

Table 3 Parameters

Parameter

Description

Computing Node

Type of compute resources.

Save Path of Root Directory

Root path for saving the trained models and log files.

Save Path of Training Data

OBS path for storing the training data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path for storing training files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Save Path of Test Data

OBS path for storing the test data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path storing test files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Feature Statistics File

File that records the number of features in each field. A complete path of the file is required. The file whose prefix is part-00000 is saved in the fields_feature_size directory under Result Save Path of the output data generated by the Ranking Training Sample Preprocessing operator in Feature Engineering.

Maximum Iterations

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

Iteration Rounds Before Stopping Trainings in Advance

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

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Average 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 Accumulative Sum: This parameter can adjust the learning step size. If adagrad is selected, Initial Gradient Accumulative 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 Accumulative Sum: This parameter can adjust the learning step size. If ftrl is selected, Initial Gradient Accumulative Sum is set to 0.1 by default.
    • L1 Regularization Coefficient: Overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L1 Regularization Coefficient is set to 0 by default.
    • L2 Regularization Coefficient: Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L2 Regularization Coefficient is set to 0 by default.

L2 Regularization Coefficient

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. L2 Regularization Coefficient 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.

Latent Vector Length

Length of the factorized feature vector. Latent Vector Length is set to 10 by default.

Deep Network Factorization Machine (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. For more details, see DeepFM: A Factorization-Machine based Neural Network for CTR Prediction.

Table 4 Parameters

Parameter

Description

Computing Node

Type of compute resources.

Save Path of Root Directory

Root path for saving the trained models and log files.

Save Path of Training Data

OBS path for storing the training data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path for storing training files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Save Path of Test Data

OBS path for storing the test data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path storing test files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Feature Statistics File

File that records the number of features in each field. A complete path of the file is required. The file whose prefix is part-00000 is saved in the fields_feature_size directory under Result Save Path of the output data generated by the Ranking Training Sample Preprocessing operator in Feature Engineering.

Maximum Iterations

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

Iteration Rounds Before Stopping Trainings in Advance

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

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Average 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 Accumulative Sum: This parameter can adjust the learning step size. If adagrad is selected, Initial Gradient Accumulative 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 Accumulative Sum: This parameter can adjust the learning step size. If ftrl is selected, Initial Gradient Accumulative Sum is set to 0.1 by default.
    • L1 Regularization Coefficient: Overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L1 Regularization Coefficient is set to 0 by default.
    • L2 Regularization Coefficient: Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L2 Regularization Coefficient is set to 0 by default.

L2 Regularization Coefficient

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. L2 Regularization Coefficient 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.

Latent Vector Length

Length of the factorized feature vector. Latent Vector Length 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.

Product-network In Network (PIN)

PIN is an optimized version of DeepFM. DeepFM calculates the relationships between features by dot product, while the PIN uses different kernels to build a model for feature interaction to calculate the relationships between the features in the two fields. The types of the kernels include dot product, cross product, matrix multiplication, and neural network. Kernel functions are used to build models for feature interaction, realizing parameter sharing and reducing model complexity. For more details. see Product-based Neural Networks for User Response Prediction over Multi-field Categorical Data.

Table 5 Parameters

Parameter

Description

Computing Node

Type of compute resources.

Save Path of Root Directory

Root path for saving the trained models and log files.

Save Path of Training Data

OBS path for storing the training data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path for storing training files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Save Path of Test Data

OBS path for storing the test data generated by the Ranking Sample Preprocessing operator in Feature Engineering.

It refers to a specific path storing test files under Result Save Path of the Ranking Sample Preprocessing operator in Feature Engineering.

Feature Statistics File

File that records the number of features in each field. A complete path of the file is required. The file whose prefix is part-00000 is saved in the fields_feature_size directory under Result Save Path of the output data generated by the Ranking Training Sample Preprocessing operator in Feature Engineering.

Maximum Iterations

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

Iteration Rounds Before Stopping Trainings in Advance

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

Initialization Method

Initialization method for model parameters. They are:

  • normal

    If normal is selected, Average 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 Accumulative Sum: This parameter can adjust the learning step size. If adagrad is selected, Initial Gradient Accumulative 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 Accumulative Sum: This parameter can adjust the learning step size. If ftrl is selected, Initial Gradient Accumulative Sum is set to 0.1 by default.
    • L1 Regularization Coefficient: Overlaid on the norm (x, 1) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L1 Regularization Coefficient is set to 0 by default.
    • L2 Regularization Coefficient: Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. If ftrl is selected, L2 Regularization Coefficient is set to 0 by default.

L2 Regularization Coefficient

Overlaid on the norm (x, 2) of the model and used to limit the model value to prevent overfitting. L2 Regularization Coefficient 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.

Latent Vector Length

Length of the factorized feature vector. Latent Vector Length 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.

Subnet Architecture

Architecture of a neural network when its kernels are used to calculate the relationships between feature vectors. Subnet Architecture is set to 40.5 by default.

Remove Factor Decomposer

Parameter that is enabled when the FM needs removing from the model architecture, which is then transformed into DNNs with kernel functions. Remove Factor Decomposer is Disabled by default.