A method and device for generating sample data and a computer-readable storage medium
By generating and learning the dependencies between weakly supervised recommendation models and re-labeling sample data, the problem of poor label reliability in weakly supervised learning in the existing technology is solved, and the performance of the recommendation model is improved.
Patent Information
- Application Number
- CN201910875573.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-09-17
AI Technical Summary
In existing recommendation systems, due to the high cost of the data annotation process, it is difficult to obtain all true value labels, resulting in poor label reliability of training samples in weakly supervised learning, which affects the performance of the recommendation model.
By generating at least two weakly supervised recommendation models, learning the dependencies between them, and constructing a neural network model for re-labeling, the label quality of the sample data is improved.
It improves the label quality of sample data, reduces the adverse impact of labeling errors on recommendation model training, and improves the performance of the recommendation model.
Smart Images

Figure CN112529024B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning technology, and in particular to a method and device for generating sample data and a computer-readable storage medium. Background Art
[0002] In recent years, recommendation systems have been successfully applied in many fields such as search engines and e-commerce websites. Recommendation systems build recommendation models based on user data mining to recommend products, information, services and other content that meet users' needs, helping users solve the problem of information overload.
[0003] Existing recommendation systems treat the training process of recommendation models as a supervised problem, whose labels (such as ratings) or specific behaviors come from users. This explicit approach provides clear labels, but the authenticity of these labels may be problematic, including false annotations by users for various reasons.
[0004] Supervised learning techniques build recommendation models by learning from a large number of training samples, where each training sample has a label indicating its true value output. Although current technologies have achieved great success, it is worth noting that due to the high cost of the data annotation process, it is difficult to obtain strong supervision information such as all true value labels for many tasks. Therefore, it is desirable to be able to use weakly supervised machine learning techniques.
[0005] Weakly supervised learning means that the labels of training samples are unreliable, such as (x, y), where y is unreliable for x. Unreliability here includes incorrect labeling, multiple labels, insufficient labeling, partial labeling, etc. Learning problems for objects with incomplete or unclear supervision information are collectively referred to as weakly supervised learning. Since the reliability of training sample labels is poor, this will have an adverse impact on the performance of the recommendation model built based on weakly supervised learning. Summary of the invention
[0006] The technical problem to be solved by the embodiments of the present invention is to provide a method, device and computer-readable storage medium for generating sample data, which can improve the label quality of the sample data and further improve the performance of the recommendation model trained based on the sample data.
[0007] To solve the above technical problems, the present invention provides a method for generating sample data, including:
[0008] Generate at least two weakly supervised recommendation models for the recommendation system;
[0009] Learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model;
[0010] The trained neural network model is used to relabel the sample data to obtain updated sample data.
[0011] Optionally, the step of learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model includes:
[0012] Based on the outputs of the at least two weakly supervised recommendation models, construct a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models;
[0013] The parameters of the neural network model are trained by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models, thereby generating a dependency relationship between the at least two weakly supervised recommendation models.
[0014] Optionally, the step of re-labeling the sample data using the trained neural network model includes:
[0015] Obtaining labeling results of the at least two weakly supervised recommendation models on the sample data;
[0016] The neural network model obtained through training is used to obtain a maximum likelihood estimate of the labeling result, and the sample data is relabeled according to the maximum likelihood estimate of the labeling result.
[0017] Optionally, the step of generating at least two weakly supervised recommendation models of the recommendation system includes:
[0018] Based on the existing weakly supervised labels, train and generate multiple different types of weakly supervised recommendation models;
[0019] From each type of weakly supervised recommendation model, a weakly supervised recommendation model with a labeling performance higher than a preset threshold is selected to obtain the at least two weakly supervised recommendation models.
[0020] Optionally, after obtaining the updated sample data, the method further includes:
[0021] The target recommendation model of the recommendation system is trained using the updated sample data.
[0022] The embodiment of the present invention further provides a device for generating sample data, including:
[0023] A recommendation model obtaining unit, used to generate at least two weakly supervised recommendation models of the recommendation system;
[0024] A neural network model learning unit, used to learn the dependency relationship between the at least two weakly supervised recommendation models by training the neural network model;
[0025] The re-labeling unit is used to re-label the sample data using the trained neural network model to obtain updated sample data.
[0026] Optionally, the neural network model learning unit is also used to construct a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models based on the outputs of the at least two weakly supervised recommendation models; and to train the parameters of the neural network model by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models to generate the dependency relationship between the at least two weakly supervised recommendation models.
[0027] Optionally, the re-labeling unit is also used to obtain the labeling results of the at least two weakly supervised recommendation models on the sample data; and, using the trained neural network model, obtain the maximum likelihood estimate of the labeling results, and re-label the sample data based on the maximum likelihood estimate of the labeling results.
[0028] Optionally, the recommendation model acquisition unit is also used to train and generate multiple different types of weakly supervised recommendation models based on existing weakly supervised labels; and, from each type of weakly supervised recommendation model, select a weakly supervised recommendation model whose labeling performance is higher than a preset threshold to obtain the at least two weakly supervised recommendation models.
[0029] Optionally, the generating device further includes:
[0030] The target recommendation model training unit is used to train the target recommendation model of the recommendation system using the updated sample data.
[0031] An embodiment of the present invention further provides a device for generating sample data, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method for generating sample data as described above when executed by the processor.
[0032] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for generating sample data as described above are implemented.
[0033] Compared with the prior art, the sample data generation method, device and computer-readable storage medium provided in the embodiments of the present invention learn the dependency relationships among multiple weakly supervised recommendation models through a neural network model, and use the above-mentioned dependencies to improve the label quality of sample data, which can avoid or reduce the adverse effects of sample data labeling errors on recommendation model training and improve the performance of the trained recommendation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a flow chart of a method for generating sample data according to an embodiment of the present invention;
[0036] Figure 2 An example diagram of a neural network model constructed according to an embodiment of the present invention;
[0037] Figure 3 Another schematic diagram of a flow chart of a method for generating sample data according to an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of the structure of a device for generating sample data according to an embodiment of the present invention;
[0039] Figure 5 Another schematic diagram of the structure of a device for generating sample data according to an embodiment of the present invention;
[0040] Figure 6 It is another structural schematic diagram of the device for generating sample data according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help fully understand the embodiments of the present invention. Therefore, it should be clear to those skilled in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. In addition, for clarity and brevity, the description of known functions and structures is omitted.
[0042] It should be understood that the references to "one embodiment" or "an embodiment" throughout the specification mean that the specific features, structures, or characteristics associated with the embodiment are included in at least one embodiment of the present invention. Therefore, the references to "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0043] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the following processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0044] Please refer to Figure 1 The embodiment of the present invention provides a method for generating sample data, which can improve the label quality of the sample data and further improve the performance of the recommendation model trained based on the sample data. Figure 1 As shown, the method for generating sample data provided by the embodiment of the present invention may include:
[0045] Step 101: Generate at least two weakly supervised recommendation models of the recommendation system.
[0046] Here, the embodiment of the present invention can train at least two weakly supervised recommendation models of the recommendation system based on existing training samples. The training samples usually include unreliable labels, so the recommendation model obtained by training is a weakly supervised recommendation model. Specifically, the training samples used by each weakly supervised recommendation model can be completely the same, partially the same, or completely different, and the present invention does not specifically limit this.
[0047] Step 102: learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model.
[0048] Here, in order to facilitate learning the dependency relationship between weakly supervised recommendation models, an embodiment of the present invention constructs a neural network model. Specifically, based on the output of the at least two weakly supervised recommendation models, a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models is constructed. Usually, the neural network model includes at least two layers of networks. Then, by maximizing the joint probability of the output of the at least two weakly supervised recommendation models, the parameters of the neural network model are trained to generate the dependency relationship between the at least two weakly supervised recommendation models. When training the neural network model, the output (label) of the at least two weakly supervised recommendation models for the same sample data is used to train with the goal of maximizing the likelihood function of the above output, and finally the parameters of the neural network model can be obtained, which reflect the dependency relationship between the at least two weakly supervised recommendation models.
[0049] Figure 2 is an example of a neural network model constructed for two weakly supervised recommendation models according to an embodiment of the present invention. The neural network model includes a two-layer network. The two-layer neural network can represent all logical operations including AND, OR, NOT and XOR. 1 and λ 2 They represent the outputs of two weakly supervised recommendation models for the same sample data, Y represents the value range of the label, and P θ (λ 1 ,λ 2,Y) represents the likelihood function of the output of the two weakly supervised recommendation models, and θ represents the parameters in the neural network model, such as the weight parameters between neurons. By maximizing the likelihood function P θ (λ 1 ,λ 2 ,Y), the parameters in the neural network model can be trained.
[0050] Step 103: Re-label the sample data using the trained neural network model to obtain updated sample data.
[0051] After obtaining the trained neural network model through step 102, the embodiment of the present invention can obtain the labeling results of the at least two weakly supervised recommendation models for a certain sample data, and then use the trained neural network model to obtain the maximum likelihood estimate of the labeling result, and then re-label the sample data according to the maximum likelihood estimate of the labeling result. Here, the sample data to be re-labeled can be the sample data of the weakly supervised recommendation model trained in step 101, or other sample data of the recommendation system, which is not specifically limited in the embodiment of the present invention.
[0052] For example, still Figure 2 Take the neural network shown in the figure as an example, assuming that the labeling results of the two weakly supervised recommendation models for a sample data are λ 1 ' and λ 2 ', then, using the neural network model, the maximum likelihood estimate of the above annotation results is obtained as P θ (λ 1 ',λ 2 ',y 1 ), then we can use y 1 Relabel the sample data, label it as y 1 .
[0053] Through the above steps, the embodiment of the present invention obtains the dependency relationship between multiple weakly supervised recommendation models through neural network model learning, and uses the above dependency relationship to re-label the sample data, thereby improving the label quality of the sample data, avoiding or reducing the adverse effects of labeling errors of the sample data on the training of the recommendation model, and improving the performance of the trained recommendation model.
[0054] In order to improve the quality of the re-labeled labels, in step 101, the embodiment of the present invention can generate a certain number of weakly supervised recommendation models with certain differences between them. That is to say, in order to achieve better re-labeling performance, a variety of weakly supervised recommendation models can be used in step 101. In specific implementation, the embodiment of the present invention can train and generate multiple different types of weakly supervised recommendation models based on existing weakly supervised labels; then, from each type of weakly supervised recommendation model, a weakly supervised recommendation model with a labeling performance higher than a preset threshold is selected to obtain the at least two weakly supervised recommendation models.
[0055] Specifically, as an implementation method of the above training to generate multiple different types of weakly supervised recommendation models, the types of weakly supervised recommendation models can be defined manually. In this case, in step 101, based on the existing weakly supervised labels, multiple different predetermined types of weakly supervised recommendation models are trained and generated. For example, weakly supervised recommendation models obtained in different ways can be used as different types, and the methods for obtaining weakly supervised recommendation models can generally include:
[0056] (1) Pattern matching or manual labeling based on user behavior rules;
[0057] (2) Unsupervised methods, such as abnormal behavior analysis;
[0058] (3) Supervised / semi-supervised recommendation models based on existing labels.
[0059] As another implementation of the above training to generate multiple different types of weakly supervised recommendation models, the embodiment of the present invention can first train and generate multiple weakly supervised recommendation models based on existing weakly supervised labels. Then, the recommendation results of the above multiple weakly supervised recommendation models are clustered, for example, using a K-means clustering algorithm to obtain multiple clusters, and then multiple different types of weakly supervised recommendation models are obtained.
[0060] In addition, in order to reduce the time required for training the subsequent neural network model, the embodiment of the present invention can control the number of the at least two weakly supervised recommendation models in step 101. Specifically, the embodiment of the present invention can select a weakly supervised recommendation model with a labeling performance higher than a preset threshold from each type of weakly supervised recommendation model, and discard those weakly supervised recommendation models with poor labeling performance. Specifically, the labeling performance can use the accuracy of the labeling of unreliable sample data (i.e., the label of the sample data is unreliable) by the weakly supervised recommendation model as a reference indicator, and the weakly supervised recommendation model with an accuracy lower than the preset threshold will be discarded.
[0061] In the above step 103, the embodiment of the present invention can obtain updated sample data. After that, Figure 3 As shown, the embodiment of the present invention may further include the following steps:
[0062] Step 104: Use the updated sample data to train a target recommendation model of the recommendation system.
[0063] Here, the embodiment of the present invention uses the updated sample data to train the recommendation model. Since the labels of the updated sample data are more accurate, the recommendation model obtained by training has better performance. Specifically, the structure of the target recommendation model in step 104 can be the same as any one of the at least two weakly supervised recommendation models described in step 101, or can be different from the at least two weakly supervised recommendation models described in step 101. The embodiment of the present invention does not specifically limit this.
[0064] Based on the above method, the embodiment of the present invention also provides a device for implementing the above method, please refer to Figure 4 The sample data generation device 400 provided in the embodiment of the present invention includes:
[0065] A recommendation model obtaining unit 401 is used to generate at least two weakly supervised recommendation models of the recommendation system;
[0066] A neural network model learning unit 402, configured to learn the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model;
[0067] The re-labeling unit 403 is used to re-label the sample data using the trained neural network model to obtain updated sample data.
[0068] Through the above-mentioned sample data generating device 400, the sample data can be re-labeled to generate more accurate labels, thereby improving the label quality, and further improving the model performance of the recommendation model subsequently trained based on the sample data.
[0069] Optionally, the neural network model learning unit 402 is also used to construct a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models based on the outputs of the at least two weakly supervised recommendation models; and to train the parameters of the neural network model by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models to generate the dependency relationship between the at least two weakly supervised recommendation models.
[0070] Optionally, the re-labeling unit is also used to obtain the labeling results of the at least two weakly supervised recommendation models on the sample data; and, using the trained neural network model, obtain the maximum likelihood estimate of the labeling results, and re-label the sample data based on the maximum likelihood estimate of the labeling results.
[0071] Optionally, the recommendation model acquisition unit is also used to train and generate multiple different types of weakly supervised recommendation models based on existing weakly supervised labels; and, from each type of weakly supervised recommendation model, select a weakly supervised recommendation model whose labeling performance is higher than a preset threshold to obtain the at least two weakly supervised recommendation models.
[0072] Another embodiment of the present invention also provides Figure 5 The sample data generating device 400A shown in FIG. Figure 4 In addition to the recommendation model obtaining unit 401, the neural network model learning unit 402 and the re-labeling unit 403 shown, the following units may also be included:
[0073] The target recommendation model training unit 404 is used to train the target recommendation model of the recommendation system using the updated sample data.
[0074] Through the above-mentioned target recommendation model training unit, the embodiment of the present invention can train a recommendation model with better performance.
[0075] Please refer to Figure 6 The embodiment of the present invention also provides a hardware structure diagram of a device for generating sample data, such as Figure 6 As shown, the sample data generating device 600 includes:
[0076] Processor 602; and
[0077] A memory 604, in which a program is stored,
[0078] When the program is executed by the processor, the processor 602 performs the following steps:
[0079] Generate at least two weakly supervised recommendation models for the recommendation system;
[0080] Learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model;
[0081] The trained neural network model is used to relabel the sample data to obtain updated sample data.
[0082] Furthermore, if Figure 6 As shown, the sample data generating device 600 may further include a network interface 601 , an input device 603 , a hard disk 605 , and a display device 606 .
[0083] The above-mentioned interfaces and devices can be interconnected through a bus architecture. The bus architecture can be a bus and bridge including any number of interconnected buses. Specifically, various circuits of one or more central processing units (CPUs) represented by processor 602 and one or more memories represented by memory 604 are connected together. The bus architecture can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits together. It can be understood that the bus architecture is used to achieve connection and communication between these components. In addition to the data bus, the bus architecture also includes a power bus, a control bus, and a status signal bus, which are all well known in the art, so they will not be described in detail herein.
[0084] The network interface 601 can be connected to a network (such as the Internet, a local area network, etc.), collect sample data from the network, and store the collected sample data in a hard disk 605 .
[0085] The input device 603 can receive various instructions input by the operator and send them to the processor 602 for execution. The input device 603 can include a keyboard or a pointing device (eg, a mouse, a trackball, a touch pad or a touch screen, etc.).
[0086] The display device 606 can display the results obtained by the processor 602 executing the instructions, such as displaying the re-labeling results or labeling progress of the sample data.
[0087] The memory 604 is used to store programs and data necessary for the operation of the operating system, as well as data such as intermediate results during the calculation process of the processor 602.
[0088] It is understood that the memory 604 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. The memory 604 of the apparatus and method described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0089] In some implementations, the memory 604 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof: an operating system 6041 and an application 6042 .
[0090] The operating system 6041 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6042 includes various application programs, such as a browser, etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 6042.
[0091] The method disclosed in the above embodiment of the present invention can be applied to the processor 602, or implemented by the processor 602. The processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 602 or the instruction in the form of software. The above processor 602 can be a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to perform, or can be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 604, and the processor 602 reads the information in the memory 604 and completes the steps of the above method in combination with its hardware.
[0092] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0093] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0094] Optionally, when the program is executed by the processor 602, the following steps may also be implemented:
[0095] Based on the outputs of the at least two weakly supervised recommendation models, construct a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models;
[0096] The parameters of the neural network model are trained by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models, thereby generating a dependency relationship between the at least two weakly supervised recommendation models.
[0097] Optionally, when the program is executed by the processor 602, the following steps may also be implemented:
[0098] Obtaining labeling results of the at least two weakly supervised recommendation models on the sample data;
[0099] The neural network model obtained through training is used to obtain a maximum likelihood estimate of the labeling result, and the sample data is relabeled according to the maximum likelihood estimate of the labeling result.
[0100] Optionally, when the program is executed by the processor 602, the following steps may also be implemented:
[0101] Based on the existing weakly supervised labels, train and generate multiple different types of weakly supervised recommendation models;
[0102] From each type of weakly supervised recommendation model, a weakly supervised recommendation model with a labeling performance higher than a preset threshold is selected to obtain the at least two weakly supervised recommendation models.
[0103] Optionally, when the program is executed by the processor 602, the following steps may also be implemented:
[0104] The target recommendation model of the recommendation system is trained using the updated sample data.
[0105] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0107] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.
[0108] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0109] 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.
[0110] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the 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 several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method for generating sample data described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0111] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for generating sample data, characterized in that: include: Generate at least two weakly supervised recommendation models for the recommendation system; Learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model; Re-labeling the sample data using the trained neural network model to obtain updated sample data; The step of learning the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model includes: Based on the outputs of the at least two weakly supervised recommendation models, a neural network model is constructed to represent the dependency relationship between the at least two weakly supervised recommendation models; by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models, the parameters of the neural network model are trained to generate the dependency relationship between the at least two weakly supervised recommendation models; The step of re-labeling the sample data using the trained neural network model includes: obtaining the labeling results of the sample data by the at least two weakly supervised recommendation models; using the trained neural network model to obtain the maximum likelihood estimate of the labeling results, and re-labeling the sample data based on the maximum likelihood estimate of the labeling results.
2. The method according to claim 1, characterized in that The step of generating at least two weakly supervised recommendation models of the recommendation system includes: Based on the existing weakly supervised labels, train and generate multiple different types of weakly supervised recommendation models; From each type of weakly supervised recommendation model, a weakly supervised recommendation model with a labeling performance higher than a preset threshold is selected to obtain the at least two weakly supervised recommendation models.
3. The method according to any one of claims 1 to 2, characterized in that: After obtaining the updated sample data, the method further includes: The target recommendation model of the recommendation system is trained using the updated sample data.
4. A device for generating sample data, characterized in that: include: A recommendation model obtaining unit, used to generate at least two weakly supervised recommendation models of the recommendation system; A neural network model learning unit, used to learn the dependency relationship between the at least two weakly supervised recommendation models by training a neural network model; A re-labeling unit, used to re-label the sample data using the trained neural network model to obtain updated sample data; The neural network model learning unit is further used to construct a neural network model for representing the dependency relationship between the at least two weakly supervised recommendation models based on the outputs of the at least two weakly supervised recommendation models; and to train the parameters of the neural network model by maximizing the joint probability of the outputs of the at least two weakly supervised recommendation models to generate the dependency relationship between the at least two weakly supervised recommendation models; The re-labeling unit is also used to obtain the labeling results of the at least two weakly supervised recommendation models on the sample data; and, using the trained neural network model, obtain the maximum likelihood estimate of the labeling results, and re-label the sample data based on the maximum likelihood estimate of the labeling results.
5. The generating device according to claim 4, characterized in that The recommendation model acquisition unit is also used to train and generate multiple different types of weakly supervised recommendation models based on existing weakly supervised labels; and to select a weakly supervised recommendation model with a labeling performance higher than a preset threshold from each type of weakly supervised recommendation model to obtain the at least two weakly supervised recommendation models.
6. The generating device according to any one of claims 4 to 5, characterized in that: Also includes: The target recommendation model training unit is used to train the target recommendation model of the recommendation system using the updated sample data.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for generating sample data according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Micro-blog emotion prediction method based on weak supervised type multi-modal deep learning
CN108108849A
Weak supervision learning method of related semantic primitives in web texts and images
CN108132968A
Deep learning-based weakly supervised salient object detection method and system
CN108399406A
Sample selection method and device
CN108399414A
Image classification method and device based on semi-supervised deep learning and storage medium
CN108416370A
