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:
- Logistic Regression (LR)
- Factorization Machine (FM)
- Field-aware Factorization Machine (FFM)
- Deep Network Factorization Machine (DeepFM)
- Product-network In Network (PIN)
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.
| 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:
|
| Optimizer Type |
|
| 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.
|
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.
| 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:
|
| Optimizer Type |
|
| 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.
|
| 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.
| 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:
|
| Optimizer Type |
|
| 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.
|
| 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.
| 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:
|
| Optimizer Type |
|
| 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.
|
| 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.
|
| 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.
| 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:
|
| Optimizer Type |
|
| 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.
|
| 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.
|
| 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. |
Last Article: Retrieval Strategy
Next Article: Filter Rule
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.