Strategy selection model training method and device and nonvolatile storage medium
Through the strategy selection model of aggregated grouping and multiple data group training, the problem that the strategy selection model in shopping scenarios is difficult to select accurate strategies, and the accuracy of the model selection strategy is improved.
Patent Information
- Application Number
- CN202411044413.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-15
AI Technical Summary
The existing strategy selection model is difficult to choose accurate strategy methods in shopping scenarios. Due to the influence of noise data and scene diversity, it makes it difficult to converge and fit the model training, and it is impossible to effectively distinguish between effective and ineffective strategy methods.
By obtaining user feature data and policy data and conversion results in historical periods, aggregating and grouping, using multiple data groups to train the original network model, and generating the target network model to select the policy method and improve the accuracy of the model selection strategy.
It realizes more accurate data annotation and model training, improves the accuracy of policy selection, and solves the problem that it is difficult to choose accurate policy methods for the policy selection model.
Smart Images

Figure CN118966301A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to a training method, device and non-volatile storage medium for a strategy selection model. Background Art
[0002] In shopping scenarios, strategy selection models are usually used to determine whether a user converts under a certain strategy. The main source of noise data is that the same user may be affected by different strategies at the same time. In the process of automated data annotation, as long as the user converts after applying the strategy method, all strategies are considered valid. This causes invalid strategy methods to interfere with the model in the training data, making it difficult for the model to formulate accurate strategy methods for users. In addition, due to the diversity of scenarios, it is difficult to learn a general model during the selection model training process, and the model cannot converge and fit well. No effective solution has been proposed for the above problems. Summary of the invention
[0003] The embodiments of the present invention provide a training method, device and non-volatile storage medium for a strategy selection model, so as to at least solve the technical problem in the related art that the strategy selection model is difficult to select an accurate strategy method for a user.
[0004] According to one aspect of an embodiment of the present invention, a training method for a strategy selection model is provided, comprising: obtaining user feature data, strategy data corresponding to a strategy method adopted in a historical period, and a conversion result corresponding to the strategy method, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending goods to the user when the user is shopping; aggregating and grouping the user feature data, the strategy data, and the conversion result corresponding to the strategy data to obtain a plurality of data groups, wherein any one of the plurality of data groups includes one user feature data in the user feature data, the strategy data corresponding to the strategy method applied in a historical sub-period in the historical period, and the corresponding conversion result; and using the plurality of data groups to train an original network model to obtain a target network model, wherein the original network model includes a plurality of original sub-network models, and the target network model is used to select the strategy method.
[0005] Optionally, user feature data, policy data, and conversion results corresponding to the policy data are aggregated and grouped to obtain multiple data groups, including: setting a time window, wherein the time window represents the length of a historical sub-period; based on the time window, user feature data, policy data, and conversion results corresponding to the policy data are aggregated and grouped to obtain multiple data groups.
[0006] Optionally, multiple data groups are used to train the original network model to obtain a target network model, including: inputting user feature data in the multiple data groups into a feature encoder to obtain user feature vectors corresponding to each of the multiple data groups; determining policy embedding vectors corresponding to each of the multiple data groups based on policy data corresponding to each of the multiple data groups; and using the user feature vectors corresponding to each of the multiple data groups, the embedding vectors corresponding to each of the multiple data groups, and the conversion results corresponding to each of the multiple data groups to train the original network model to obtain a target network model.
[0007] Optionally, multiple data groups are used to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, including: inputting multiple data groups into multiple original sub-network models in sequence, and outputting multiple conversion results; based on the conversion results corresponding to the user and the conversion results corresponding to the multiple data groups, adjusting the parameters corresponding to each of the multiple original sub-network models to obtain multiple target sub-network models; and determining the target network model based on the multiple target sub-network models.
[0008] Optionally, multiple data groups are used to train the original network model to obtain a target network model, including: inputting user feature vectors corresponding to each of the multiple data groups and embedding vectors corresponding to each of the multiple data groups into multiple original sub-network models to obtain conversion results corresponding to each of the multiple original sub-network models; determining weight coefficients corresponding to each of the multiple original sub-network models based on the conversion results corresponding to the multiple original sub-network models and the conversion results corresponding to the multiple data groups; and determining the target network model based on the weight coefficients corresponding to each of the multiple original sub-network models.
[0009] Optionally, user characteristics of the target user are obtained; policy data corresponding to a plurality of policy methods and user characteristics are input into the target network model in sequence to obtain conversion results corresponding to each of the plurality of policy methods; and a policy method corresponding to a conversion result that meets preset conditions among the conversion results corresponding to each of the plurality of policy methods is selected as the policy method for the target user.
[0010] According to another aspect of an embodiment of the present invention, a training device for a strategy selection model is also provided, including: an acquisition module, used to acquire user feature data, strategy data corresponding to the strategy method adopted in a historical period, and conversion results corresponding to the strategy method, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending products to the user when the user is shopping; an aggregation module, used to aggregate and group the user feature data, strategy data, and the conversion results corresponding to the strategy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, the strategy data corresponding to the strategy method applied in a historical sub-period in the historical period, and the corresponding conversion result; a training module, used to train the original network model using the multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the strategy method.
[0011] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned training methods for the strategy selection model.
[0012] According to yet another aspect of an embodiment of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above-mentioned training methods for the strategy selection model is executed.
[0013] According to yet another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, which implements any one of the above-mentioned training methods for the strategy selection model when the computer program is executed by a processor.
[0014] In an embodiment of the present invention, a training method of a strategy selection model is adopted, by obtaining user feature data, strategy data corresponding to the strategy method adopted in a historical period, and conversion results corresponding to the strategy method, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending goods to the user when the user is shopping; the user feature data, the strategy data, and the conversion results corresponding to the strategy data are aggregated and grouped to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, the strategy data corresponding to the strategy method applied in a historical sub-period in the historical period, and the corresponding conversion results; the original network model is trained using the multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the strategy method, thereby achieving the purpose of more accurately annotating the training data, thereby achieving the technical effect of improving the accuracy of the model's selection strategy, and further solving the technical problem that the strategy selection model in the related art is difficult to select an accurate strategy method for the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a computer terminal for implementing a training method for a strategy selection model is shown;
[0017] Figure 2 is a flow chart of a training method for a strategy selection model provided in an embodiment of the present invention;
[0018] Figure 3 is a training flow chart of a training method for a strategy selection model provided in an optional embodiment of the present invention;
[0019] Figure 4 It is a structural block diagram of a training device for a strategy selection model provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] According to an embodiment of the present invention, a method embodiment of a method for training a strategy selection model is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0023] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a training method for a strategy selection model. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0024] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0025] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the training method of the policy selection model in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the training method of the policy selection model of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0026] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .
[0027] In the related art, the strategy data is automatically labeled, that is, as long as the user's conversion result is positive, the strategy method applied to the user is considered to be effective, but in fact not all strategy methods are effective. In order to solve the above technical problems, the present invention proposes an embodiment of a training method for a strategy selection model. Figure 2 FIG. 1 is a flow chart of a training method for a strategy selection model according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0028] Step S202, obtaining user feature data, strategy data corresponding to the strategy method adopted in the historical period, and conversion results corresponding to the strategy method, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending products to the user when the user is shopping.
[0029] In this step, the user characteristic data is obtained, which can be the user characteristics of the user in the shopping scenario, such as the user's consumption level, shopping time, etc. The strategy method adopted in the historical period can be a strategy applied to the user, such as advertising promotion, product discounts, etc. Among them, the strategy data can be the degree of influence on the user's behavioral characteristics. For example, in a shopping scenario, the user's behavioral characteristics may include product browsing, product purchase, etc. For the strategy method of advertising, the impact on the user's behavioral characteristics should be to increase the user's product browsing volume, while the impact of the strategy method of product discount on the user's behavioral characteristics should be to increase the possibility of the user purchasing the product. The conversion result corresponding to the strategy method is the user's performance after the strategy acts on the user, for example, purchasing behavior, browsing behavior, etc. are all positive conversion results. If the user has no corresponding behavior after applying the strategy method, the conversion result is considered to be a negative result.
[0030] Step S204, aggregate and group the user feature data, policy data, and the conversion results corresponding to the policy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result.
[0031] In this step, user feature data, policy data, and the conversion results corresponding to the policy data can be aggregated and grouped. For example, if multiple policy methods are applied to a certain user, multiple data groups can be obtained through aggregation and grouping, where each data group only includes user feature data corresponding to one user, a policy method within a historical sub-period, or policy data corresponding to a single policy method, and the conversion results corresponding to the policy method. User features, each policy method and its corresponding conversion results are taken as one data group. This improves the accuracy of data labeling, thereby improving the accuracy of subsequent model selection.
[0032] Step S206, using multiple data groups to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select a strategy method.
[0033] In this step, a part of the data groups can be selected as a training set to train the original network model. The original network model here can be a hybrid expert network model. The hybrid expert network model is to divide a specific layer of a large neural network into multiple small expert sub-networks, that is, the original network model can include multiple original sub-network models. The original network model can be trained with a training set, and then a part of the data group can be selected as a test set to test the trained network model, and finally the target network model is obtained. The introduction of the hybrid expert network model allows different expert networks to learn different scene data, which is equivalent to splitting a complex task into several sub-tasks. It is not only easy to explain, but also improves the training efficiency, making the model easy to converge and fit.
[0034] Through the above steps, the purpose of more accurately labeling the training data is achieved, thereby achieving the technical effect of improving the accuracy of the model's selection strategy, and further solving the technical problem that the strategy selection model in the related technology is difficult to select accurate strategy methods for users.
[0035] As an optional embodiment, user feature data, policy data, and conversion results corresponding to the policy data are aggregated and grouped to obtain multiple data groups, including: setting a time window, wherein the time window represents the length of a historical sub-period; based on the time window, user feature data, policy data, and conversion results corresponding to the policy data are aggregated and grouped to obtain multiple data groups.
[0036] Optionally, a time window can be set, and the time window is the length of the historical sub-period. For example, if the data of the historical period obtained is the data of the past month, the time window can be set to two days, that is, the corresponding data in each data group is the data within every two days. The user feature data and the policy data corresponding to the user within two days and the conversion results corresponding to the policy data are taken as a data group. Based on the user feature data, policy data and the conversion results corresponding to the policy data in the historical period obtained, multiple data groups can be divided. A part of the multiple data groups can be selected as a training set for training the original network model.
[0037] As an optional embodiment, multiple data groups are used to train the original network model to obtain a target network model, including: inputting user feature data in the multiple data groups into a feature encoder to obtain user feature vectors corresponding to each of the multiple data groups; determining policy embedding vectors corresponding to each of the multiple data groups based on policy data corresponding to each of the multiple data groups; and using the user feature vectors corresponding to each of the multiple data groups, the embedding vectors corresponding to each of the multiple data groups, and the conversion results corresponding to each of the multiple data groups to train the original network model to obtain a target network model.
[0038] Optionally, Figure 3 is a training flow chart of a training method for a strategy selection model according to an optional embodiment of the present invention, such as Figure 3 As shown, the user features can be input into the feature encoder to obtain the user's feature vector h = f θ (x), where x is the original feature of the user, f is the feature encoder, θ is all the training parameters of the feature encoder, and h is the feature vector representation of the user. Usually, a multi-layer perceptron autoencoder can be used as a feature encoder, or a more advanced encoder can be used. Policy data can also be input into the policy embedding layer, and the embedding layer outputs the embedding representation corresponding to the policy. The output policy embedding representation can be used to generate a multi-strategy embedding representation through a soft attention mechanism, e i =Embedding(d i ), where d i is the i-th strategy method the user receives, e i is the embedded representation of the output. The calculation method of the soft attention mechanism is as follows: α = softmax(w T tanh(E)), s = Eα T Among them, E is the matrix formed by stacking the embedding representations of different strategies, and w T is the training parameter of the attention layer, α is the calculated weight parameter of different strategies, and s is the generated embedded representation of multiple strategies. The obtained user feature vector and the strategy embedding vector corresponding to the strategy data and the corresponding transformation result can be used as the training set to train the original network model to obtain the target network model.
[0039] As an optional embodiment, multiple data groups are used to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, including: inputting multiple data groups into multiple original sub-network models in sequence, and outputting multiple conversion results; based on the conversion results corresponding to the user and the conversion results corresponding to the multiple data groups, adjusting the parameters corresponding to each of the multiple original sub-network models to obtain multiple target sub-network models; and determining the target network model based on the multiple target sub-network models.
[0040] Optionally, multiple data groups can be input into each original sub-network model in turn, and the corresponding conversion results will be output. The parameters of the original sub-network model can be adjusted based on the conversion results in the data group, that is, the labels that have been pre-marked in advance, and multiple target sub-network models can be obtained. The target network model can be determined based on multiple target sub-network models. Because the multiple sub-network models are suitable for different scenarios, in the actual training process, the sub-network model can be trained using training data under multiple scenarios. For example, different shopping scenarios and different strategies may have different conversion effects, and the corresponding sub-network model parameter adjustments may also be different. Therefore, a large number of training sets can be used so that the final target network model can adapt to different scenarios.
[0041] As an optional embodiment, multiple data groups are used to train the original network model to obtain a target network model, including: inputting user feature vectors corresponding to each of the multiple data groups and embedding vectors corresponding to each of the multiple data groups into multiple original sub-network models to obtain conversion results corresponding to each of the multiple original sub-network models; determining weight coefficients corresponding to each of the multiple original sub-network models based on the conversion results corresponding to the multiple original sub-network models and the conversion results corresponding to the multiple data groups; and determining the target network model based on the weight coefficients corresponding to each of the multiple original sub-network models.
[0042] Alternatively, if Figure 3As shown, the embedded representation of multiple strategies and the feature vector representation of the user can be concatenated and input into the mixture-of-experts network. The mixture-of-experts network divides a specific layer of a (large) neural network into m small expert networks (i.e., sub-networks). It uses a gating unit to calculate k expert networks (k < m) that need to be routed for the input sample. In this architecture, each expert network is responsible for processing a part of the input data and outputs an output based on its expertise. Then, the gating network assigns weights according to the outputs of each expert to integrate the outputs of all experts into the final output. In the mixture-of-experts network, the routing scores (also called gating scores or routing weights) of the expert networks are calculated by the gating network. The gating network is usually a neural network that receives the input data and outputs a set of weights that determine the contribution degree of each expert network to the final output. Among them, the calculation method of the routing scores (weight coefficients) is as follows: The gating network receives the input data and processes it. Then the gating network outputs a set of weights that correspond to each expert network. Each expert network receives the input data and outputs an output based on its expertise. Multiply the output of each expert network by its corresponding routing weight to calculate the weighted output. Add up all the weighted outputs to get the final mixed output. For example, the corresponding function G(e, s) = softmax(TopK(U(e, s), k)) can be set, where U(e, s) = [e; s]·W g , where U(e, s) is used to calculate the routing scores of each expert network, and W g are the training parameters of the gating unit. The TopK() function ensures that the weights of the expert networks not selected for routing are set to 0 during softmax. Input the feature vector of the user and the embedded representation of the strategy into the expert network, and only retain the output vectors of the expert networks selected for routing by the gating unit. For example, according to the formula where G(e, s) i is the routing score of the i-th expert network, is the output of the i-th expert network, and m is the number of expert networks. r is the score output by the target network model and can be used to evaluate the conversion result of the input strategy data. Finally, output r to the classifier, and the obtained y is the conversion result of the user. Based on the comparison between this conversion result and the actual conversion result, the weight coefficients corresponding to different sub-network models can be adjusted to obtain a more accurate conversion result. For different data in different scenarios, the degrees to which different sub-network models play their roles are also different. Therefore, different shopping scenarios can correspond to different weights of sub-network models.
[0043] As an optional embodiment, user characteristics of a target user are obtained; policy data corresponding to a plurality of policy methods and user characteristics are sequentially input into a target network model to obtain conversion results corresponding to each of the plurality of policy methods; and a policy method corresponding to a conversion result that meets preset conditions among the conversion results corresponding to each of the plurality of policy methods is selected as the policy method for the target user.
[0044] Optionally, the user characteristics of the target user and the policy data corresponding to the multiple policy methods can be combined and input into the target network model in sequence, and the conversion results corresponding to the multiple policy methods can be obtained. This conversion result can be a score value. Based on the conversion results corresponding to the multiple policy methods, the policy method with the highest score output by the hybrid expert network model can be selected as the policy method for the target user. Among them, the corresponding policy data obtained by combining multiple policy methods can be input into the target network model together with the user characteristics. For example, there are multiple policy methods, which can be combined in pairs, and the policy data and user feature data corresponding to the combined policy method are input into the target network model to obtain the final policy method. For example, advertising push and product discounts can be combined as a combined policy method and applied to users. This combined policy method may achieve better conversion results than a single policy method.
[0045] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0046] Through the description of the above implementation methods, those skilled in the art can clearly understand that the training method of the strategy selection model according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0047] According to an embodiment of the present invention, a strategy selection model training device for implementing the strategy selection model training method is also provided. Figure 4is a structural block diagram of a training device for a strategy selection model according to an embodiment of the present invention, such as Figure 4 As shown, the training device of the strategy selection model includes: an acquisition module 42, an aggregation module 44 and a training module 46. The training device of the strategy selection model is described below.
[0048] The acquisition module 42 is used to obtain user feature data, strategy data corresponding to the strategy method adopted in the historical period and the conversion results corresponding to the strategy method, wherein the conversion results represent the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending products to the user when the user is shopping.
[0049] The aggregation module 44 is connected to the acquisition module 42, and is used to aggregate and group the user feature data, the policy data and the conversion results corresponding to the policy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, the policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result.
[0050] The training module 46 is connected to the aggregation module 44 and is used to train the original network model using multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select a strategy method.
[0051] Optionally, the aggregation module 44 is used to aggregate and group user feature data, policy data, and conversion results corresponding to the policy data to obtain multiple data groups, including: setting a time window, wherein the time window represents the length of a historical sub-period; based on the time window, aggregating and grouping user feature data, policy data, and conversion results corresponding to the policy data to obtain multiple data groups.
[0052] Optionally, the training module 46 is used to use multiple data groups to train the original network model to obtain a target network model, including: inputting user feature data in the multiple data groups into a feature encoder to obtain user feature vectors corresponding to each of the multiple data groups; determining a policy embedding vector corresponding to each of the multiple data groups based on policy data corresponding to each of the multiple data groups; and using the user feature vectors corresponding to each of the multiple data groups, the embedding vectors corresponding to each of the multiple data groups, and the conversion results corresponding to each of the multiple data groups to train the original network model to obtain a target network model.
[0053] Optionally, the training module 46 is used to train the original network model with multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, including: inputting multiple data groups into multiple original sub-network models in sequence, and outputting multiple conversion results; based on the conversion results corresponding to the user and the conversion results corresponding to the multiple data groups, adjusting the parameters corresponding to each of the multiple original sub-network models to obtain multiple target sub-network models; and determining the target network model based on the multiple target sub-network models.
[0054] Optionally, the training module 46 is used to train the original network model using multiple data groups to obtain a target network model, including: inputting user feature vectors corresponding to each of the multiple data groups and embedding vectors corresponding to each of the multiple data groups into multiple original sub-network models to obtain conversion results corresponding to each of the multiple original sub-network models; determining weight coefficients corresponding to each of the multiple original sub-network models based on the conversion results corresponding to the multiple original sub-network models and the conversion results corresponding to the multiple data groups; and determining the target network model based on the weight coefficients corresponding to each of the multiple original sub-network models.
[0055] Optionally, an acquisition unit is used to acquire user characteristics of a target user; an input unit is used to input policy data corresponding to a plurality of policy methods and user characteristics into a target network model in sequence to obtain conversion results corresponding to each of the plurality of policy methods; and a selection unit is used to select a policy method corresponding to a conversion result that meets preset conditions from among the conversion results corresponding to each of the plurality of policy methods as the policy method for the target user.
[0056] It should be noted that the acquisition module 42, aggregation module 44 and training module 46 correspond to steps S202 to S206 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.
[0057] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.
[0058] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the training method and device of the policy selection model in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the training method of the above-mentioned policy selection model. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0059] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: obtain user feature data, policy data corresponding to the policy method adopted in the historical period, and conversion results corresponding to the policy method, wherein the conversion result represents the degree of influence of the corresponding policy method on the user, and the policy method represents the method of recommending goods to the user when the user is shopping; aggregate and group the user feature data, policy data, and the conversion results corresponding to the policy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result; use the multiple data groups to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the policy method.
[0060] According to an embodiment of the present invention, a training method for a strategy selection model is provided, wherein user feature data, strategy data corresponding to a strategy method used in a historical period, and a conversion result corresponding to the strategy method are obtained, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending products to the user when the user is shopping; the user feature data, the strategy data, and the conversion result corresponding to the strategy data are aggregated and grouped to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, the strategy data corresponding to a strategy method applied in a historical sub-period in the historical period, and the corresponding conversion result; the original network model is trained using the multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the strategy method, thereby achieving the purpose of more accurately annotating the training data, thereby achieving the technical effect of improving the accuracy of the model's selection strategy, and further solving the technical problem in the related art that the strategy selection model is difficult to select an accurate strategy method for the user.
[0061] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0062] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the training method of the strategy selection model provided in the above embodiment.
[0063] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0064] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining user feature data, policy data corresponding to the policy method adopted in a historical period, and conversion results corresponding to the policy method, wherein the conversion results represent the degree of influence of the corresponding policy method on the user, and the policy method represents the method of recommending products to the user when the user is shopping; aggregating and grouping the user feature data, policy data, and the conversion results corresponding to the policy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion results; using the multiple data groups to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the policy method.
[0065] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: aggregating and grouping user feature data, policy data, and conversion results corresponding to the policy data to obtain multiple data groups, including: setting a time window, wherein the time window represents the length of a historical sub-period; based on the time window, aggregating and grouping user feature data, policy data, and conversion results corresponding to the policy data to obtain multiple data groups.
[0066] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: using multiple data groups to train the original network model to obtain a target network model, including: inputting user feature data in the multiple data groups into a feature encoder to obtain user feature vectors corresponding to each of the multiple data groups; determining a policy embedding vector corresponding to each of the multiple data groups based on policy data corresponding to each of the multiple data groups; using the user feature vectors corresponding to each of the multiple data groups, the embedding vectors corresponding to each of the multiple data groups, and the conversion results corresponding to each of the multiple data groups to train the original network model to obtain a target network model.
[0067] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: using multiple data groups to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, including: inputting multiple data groups into multiple original sub-network models in sequence, and outputting multiple conversion results; based on the conversion results corresponding to the user and the conversion results corresponding to the multiple data groups, adjusting the parameters corresponding to each of the multiple original sub-network models to obtain multiple target sub-network models; and determining the target network model based on the multiple target sub-network models.
[0068] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: using multiple data groups to train the original network model to obtain a target network model, including: inputting user feature vectors corresponding to each of the multiple data groups and embedding vectors corresponding to each of the multiple data groups into multiple original sub-network models to obtain conversion results corresponding to each of the multiple original sub-network models; determining weight coefficients corresponding to each of the multiple original sub-network models based on the conversion results corresponding to the multiple original sub-network models and the conversion results corresponding to the multiple data groups; determining the target network model based on the weight coefficients corresponding to each of the multiple original sub-network models.
[0069] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: obtaining user characteristics of a target user; inputting policy data corresponding to a plurality of policy methods and user characteristics into a target network model in sequence to obtain conversion results corresponding to each of the plurality of policy methods; and selecting a policy method corresponding to a conversion result that meets preset conditions from among the conversion results corresponding to each of the plurality of policy methods as the policy method for the target user.
[0070] An embodiment of the present invention also provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can achieve: obtaining user feature data, policy data corresponding to the policy method adopted in a historical period, and conversion results corresponding to the policy method, wherein the conversion result represents the degree of influence of the corresponding policy method on the user, and the policy method represents the method of recommending goods to the user when the user is shopping; aggregating and grouping the user feature data, policy data, and the conversion results corresponding to the policy data to obtain multiple data groups, wherein any one of the multiple data groups includes one user feature data in the user feature data, policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result; using multiple data groups to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select the policy method.
[0071] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0072] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0074] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0075] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0076] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0077] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A training method for a strategy selection model, characterized in that: include: Obtaining user feature data, strategy data corresponding to the strategy method used in the historical period, and conversion results corresponding to the strategy method, wherein the conversion result represents the degree of influence of the corresponding strategy method on the user, and the strategy method represents the method of recommending products to the user when the user is shopping; Aggregating and grouping the user feature data, the policy data, and the conversion results corresponding to the policy data to obtain a plurality of data groups, wherein any one of the plurality of data groups includes one user feature data in the user feature data, policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result; The original network model is trained using the multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select a strategy method.
2. The method according to claim 1, characterized in that The user feature data, the policy data and the conversion results corresponding to the policy data are aggregated and grouped to obtain multiple data groups, including: Setting a time window, wherein the time window represents the duration of the historical sub-period; Based on the time window, the user feature data, the policy data, and the conversion results corresponding to the policy data are aggregated and grouped to obtain the multiple data groups.
3. The method according to claim 1, characterized in that The method of using the multiple data groups to train the original network model to obtain the target network model includes: Inputting user feature data in the plurality of data groups into a feature encoder to obtain user feature vectors corresponding to each of the plurality of data groups; Determining, according to the policy data corresponding to each of the plurality of data groups, a policy embedding vector corresponding to each of the plurality of data groups; The original network model is trained using the user feature vectors corresponding to each of the multiple data groups, the embedding vectors corresponding to each of the multiple data groups, and the conversion results corresponding to each of the multiple data groups to obtain the target network model.
4. The method according to claim 1, characterized in that: The multiple data groups are used to train the original network model to obtain a target network model, wherein the original network model includes multiple original sub-network models, including: Inputting the plurality of data groups into the plurality of original sub-network models in sequence, and outputting a plurality of transformation results; Based on the conversion results corresponding to the user and the conversion results corresponding to the multiple data groups, adjusting the parameters corresponding to the multiple original sub-network models to obtain multiple target sub-network models; The target network model is determined according to the multiple target sub-network models.
5. The method according to claim 3, characterized in that: The method of using the multiple data groups to train the original network model to obtain the target network model includes: Inputting the user feature vectors corresponding to each of the multiple data groups and the embedding vectors corresponding to each of the multiple data groups into the multiple original sub-network models to obtain the transformation results corresponding to each of the multiple original sub-network models; Determine the weight coefficients corresponding to the multiple original sub-network models based on the transformation results corresponding to the multiple original sub-network models and the transformation results corresponding to the multiple data groups; The target network model is determined according to the weight coefficients corresponding to each of the multiple original sub-network models.
6. The method according to any one of claims 1 to 5, characterized in that: Also includes: Obtain user characteristics of target users; Inputting the policy data corresponding to the plurality of policy methods and the user characteristics into the target network model in sequence, and obtaining conversion results corresponding to each of the plurality of policy methods; A strategy method corresponding to a conversion result that meets a preset condition among the conversion results corresponding to each of the multiple strategy methods is selected as the strategy method for the target user.
7. A training device for a strategy selection model, characterized in that: include: An acquisition module, used to acquire user feature data, strategy data corresponding to the strategy method adopted in the historical period, and conversion results corresponding to the strategy method, wherein the conversion result represents the influence degree of the corresponding strategy method on the user, and the strategy method represents the method of recommending goods to the user when the user is shopping; an aggregation module, configured to aggregate and group the user feature data, the policy data, and the conversion result corresponding to the policy data to obtain a plurality of data groups, wherein any one of the plurality of data groups includes one user feature data in the user feature data, the policy data corresponding to the policy method applied in a historical sub-period in the historical period, and the corresponding conversion result; A training module is used to train the original network model using the multiple data groups to obtain a target network model, wherein the original network model includes multiple original sub-network models, and the target network model is used to select a strategy method.
8. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the training method of the strategy selection model described in any one of claims 1 to 6.
9. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes the training method of the strategy selection model described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the training method of the strategy selection model described in any one of claims 1 to 6 is implemented.
