Similar crowd expansion model training method and expansion method
The characteristics of seed users and non-seed users are trained and verified through the lightGBM model, which solves the problem of reduced accuracy during crowd expansion, achieves highly accurate crowd expansion, and improves operational effects.
Patent Information
- Application Number
- CN202410662266.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-03
AI Technical Summary
When the crowd expands in the existing technology, the accuracy decreases significantly as the number of expansions increases, resulting in a decrease in operational effectiveness.
The lightGBM model is used to train the training set, including the characteristics of seed users and non-seed users. The accuracy of the expanded crowd is ensured through sorting and verification, and the trained model is output for crowd expansion.
This ensures that the accuracy of similar crowd expansion is not affected by the number of expansions, and improves the accuracy and operational effects of crowd expansion.
Smart Images

Figure CN118585809A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to an expansion model training method and expansion method for similar groups of people. Background Art
[0002] With the development of the advertising industry, the number of users in the crowd may not be able to meet the requirements of advertising delivery, which requires expanding the size of the crowd that has been circled to the size of the crowd that needs to be met for advertising delivery. In the prior art, crowd expansion is based on the behavior and characteristics of users, using collaborative filtering algorithms to find people with similar behaviors and characteristics. The algorithm will score people with similarities. The higher the score, the higher the similarity; conversely, the lower the score, the lower the similarity; therefore, the current crowd expansion method requires a larger crowd size to be expanded, and the lower the accuracy.
[0003] For example: the operation needs to expand an original population of 300,000 to 5 million, but according to the algorithm, there are only 3 million people with similar behaviors and characteristics to the 300,000 people, which means that 2 million people have a very low similarity with the 300,000 seed population. This results in 2 million expanded people being invalid data, which will greatly reduce the operation effect. Summary of the invention
[0004] The present application provides an expansion model training method and expansion method for a similar population, so as to solve the defect in the prior art that the larger the scale of the expanded population, the lower the accuracy.
[0005] In a first aspect, the present application provides a method for training an expansion model of a similar population, comprising:
[0006] Construct a training set, wherein the training set includes seed users and non-seed users, the seed users have a first user feature, and the non-seed users have a second user feature;
[0007] Determine the number of the first similar groups to be expanded, recorded as the first number;
[0008] Input the training set into the lightGBM model to train the lightGBM model, and output an expanded similar population, and record the number of the expanded similar population as a second number, where the second number is greater than or equal to the first number;
[0009] Sorting the expanded similar groups of people, and intercepting the second number according to the first number to obtain a first similar group expansion result;
[0010] The training process of the lightGBM model is verified according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output.
[0011] Optionally, construct a training set, including:
[0012] Marking the seed users and non-seed users respectively;
[0013] The first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user to obtain a training set.
[0014] Optionally, the first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user, and then:
[0015] Recording the first user feature after being spliced with the seed user as a first spliced feature, and recording the second user feature after being spliced with the non-seed user as a second spliced feature;
[0016] The first concatenated feature and the second concatenated feature are subjected to continuous feature discretization, null value feature smoothing, discrete feature encoding, and positive and negative sample balancing to obtain a training set.
[0017] Optionally, the first user feature includes a target feature, and the training process of the lightGBM model is verified according to the first similar population expansion result, including:
[0018] If the first similar group expansion result includes the seed user, sorting the first user features of the seed user according to their importance to obtain a feature sorting result;
[0019] Determine important features according to the feature sorting results;
[0020] If the important feature coincides with the target feature, it means that the training process of the lightGBM model has passed the verification.
[0021] In a second aspect, the present application also provides a method for expanding a similar population, comprising:
[0022] Acquire a seed user and a non-seed user, wherein the seed user has a first user characteristic, and the non-seed user has a second user characteristic;
[0023] Determine the number of the second similar group to be expanded;
[0024] The seed users, non-seed users and the number of the second similar population to be expanded are input into the trained lightGBM model to obtain the second similar population expansion result.
[0025] Optionally, the seed user includes a first tag ID, and after obtaining the second similar group expansion result, the following further includes:
[0026] A second tag ID is constructed for the second similar group expansion result, and the second tag ID is associated with the first tag ID.
[0027] In a third aspect, the present application also provides an expansion model training system for similar populations, including:
[0028] A training set construction module, used to construct a training set, wherein the training set includes seed users and non-seed users, the seed users have a first user feature, and the non-seed users have a second user feature;
[0029] A first quantity determination module, used to determine the quantity of the first similar group of people to be expanded, recorded as the first quantity;
[0030] A model training module, used for inputting the training set into the lightGBM model to train the lightGBM model, and outputting an expanded similar population, recording the number of the expanded similar population as a second number, wherein the second number is greater than or equal to the first number;
[0031] a sorting module, used for sorting the expanded similar population, and intercepting the second number according to the first number to obtain a first similar population expansion result;
[0032] The model verification module is used to verify the training process of the lightGBM model according to the first similar population expansion result, and if the verification is passed, the trained lightGBM model is output.
[0033] In a fourth aspect, the present application also provides a similar group expansion system, including:
[0034] A data acquisition module, used to acquire seed users and non-seed users, wherein the seed users have a first user characteristic and the non-seed users have a second user characteristic;
[0035] A target quantity determination module, used to determine the quantity of the second similar population to be expanded;
[0036] The similar population expansion module is used to input the seed users, non-seed users and the number of the second similar population to be expanded into the trained lightGBM model to obtain the second similar population expansion result.
[0037] In a fifth aspect, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for training an expansion model of a similar population or the method for expanding a similar population is implemented.
[0038] In a sixth aspect, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the similar population expansion model training method or the similar population expansion method.
[0039] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: in the method provided by the embodiment of the present application, the training set includes both seed users and non-seed users, and the lightGBM model is trained by inputting the training set into the lightGBM model, and the expanded similar population (second number) is output; and the expanded similar population is sorted, and then the second number is intercepted to obtain the first similar population expansion result. The present application expands the similar population based on the lightGBM model, which can ensure that the accuracy of the similar population is not affected by the expansion number, and further, the present application also verifies the training process of the lightGBM model according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output for subsequent application, so that the population expansion after verification can also ensure the accuracy of the population expansion. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0043] Figure 1 A flow chart of a method for training an expansion model of a similar population provided in an embodiment of the present application;
[0044] Figure 2 A flow chart of a method for expanding a similar population provided in an embodiment of the present application;
[0045] Figure 3 A module diagram of a similar population expansion model training system provided in an embodiment of the present application;
[0046] Figure 4 A module diagram of a similar group expansion system provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0049] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0050] In some specific situations, it is often necessary to expand the population, such as advertising. By expanding the population, the potential customer base can be expanded, the number of potential customers can be increased, and thus sales opportunities can be increased. In addition, brand exposure can be increased. Expanding the target population can expose the brand to more people, increase awareness and exposure. Finally, the advertising effect can be optimized. By expanding the target population, potential customers can be more accurately located, and the advertising effect can be improved. In order to solve the technical problem in the prior art that the larger the population size to be expanded, the lower the accuracy, this application provides an expansion model training method and expansion method for similar populations, which can ensure that the accuracy is not affected by the expansion number.
[0051] Figure 1 A flow chart of a similar population expansion model training method provided in an embodiment of the present application, such as Figure 1 As shown, a similar population expansion model training method includes:
[0052] Step 101: construct a training set, wherein the training set includes seed users and non-seed users, wherein the seed users have a first user feature, and the non-seed users have a second user feature.
[0053] It should be noted that seed users and non-seed users can be screened from an existing database and selected and circled according to the preset first user feature and second user feature. The first user feature and the second user feature are generally different. For example, according to the first user feature, 18,665 seed user data of historical non-low-sensitivity and high-demand users of a data source of a social platform are obtained from the database, and according to the second user feature, 78,303 non-seed user data of historical non-low-sensitivity and high-demand users of the data source of the social platform are obtained from the database.
[0054] Furthermore, since seed users are the group of people identified by the DMP data management platform based on business logic, the principle of identification is to find users with similar behaviors or characteristics based on the logic of seed users, so seed users need to have clear behaviors or characteristics. For example, seed users who are not historically low-sensitivity and high-demand users of the social platform mean that this group of users are users of the social platform, they have low demand for starting broadcasts, and are very sensitive to product package prices.
[0055] It should be mentioned that the first user feature and the second user feature both include static features and dynamic features. Static feature labels are obtained from the big data HDFS. Static features are based on user attribute data, such as browsing the checkout counter, starting movies, purchasing product packages, TV movement, model, size and resolution, etc. Since most static features are generated after statistics, the data timeliness is T+1, representing historical data. Since these features are derived from historical data, they are generally not very variable, so they are called static features. There is also a real-time feature, such as a member purchase timeliness label. This type of action and behavior is real-time, so it is called a dynamic feature.
[0056] In a specific embodiment, step 101 includes:
[0057] Marking the seed users and non-seed users respectively;
[0058] The first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user to obtain a training set.
[0059] It should be noted that the seed user can be regarded as a positive sample and marked as 1, and the non-seed user can be regarded as a negative sample and marked as 0.
[0060] Splicing the first user feature with the marked seed user is to splice the marked seed user with the first user feature, wherein the first user feature includes a static feature and a dynamic feature.
[0061] Splicing the second user feature with the marked non-seed user is to splice the marked non-seed user with the second user feature, wherein the second user feature includes a static feature and a dynamic feature.
[0062] In a specific embodiment, after splicing the first user feature with the marked seed user and splicing the second user feature with the marked non-seed user, the method further includes:
[0063] Recording the first user feature after being spliced with the seed user as a first spliced feature, and recording the second user feature after being spliced with the non-seed user as a second spliced feature;
[0064] The first concatenated feature and the second concatenated feature are subjected to continuous feature discretization, null value feature smoothing, discrete feature encoding, and positive and negative sample balancing to obtain a training set.
[0065] It should be noted that only discretized data can ensure the fairness of training without bias. The characteristics of null values will affect the correctness of the algorithm's judgment, so null values need to be removed or directly marked with 0, and positive and negative samples must be balanced, that is, the arrangement or discrete state of positive and negative samples must be uniform, so as to ensure the fairness of training.
[0066] Step 102: Determine the number of first similar groups to be expanded, recorded as the first number.
[0067] It should be noted that the first number is the target number to be expanded, for example, 5 million.
[0068] Step 103: Input the training set into the lightGBM model to train the lightGBM model, and output the expanded similar population, and record the number of the expanded similar population as the second number, which is greater than or equal to the first number.
[0069] It should be noted that the lightGBM model contains more than 100 algorithms, and each algorithm will participate in the learning and training of seed users more than 30 times. At this stage, we will focus on indicators such as the number of cross-validation times, algorithm learning rate, number of leaf nodes, decision tree depth, and regularization. These indicators reflect whether the algorithm is optimal for training the seed user.
[0070] In order to improve the accuracy of the algorithm, we use the algorithm model trained by cross-validation to train the data and continuously improve the cross-validation score to improve the accuracy of the algorithm.
[0071] Step 104: sorting the expanded similar population, and intercepting the second number according to the first number to obtain a first similar population expansion result.
[0072] After the data is trained by the cross-validation model, the classification model is used to score and sort the expanded similar population. A higher score represents a higher accuracy, that is, a higher similarity, and a lower score represents a lower similarity. Furthermore, since the number of the first similar population to be expanded is determined when the population is expanded, the number of users intercepted here is intercepted according to the scores from high to low. For example, the scores from high to low are 1 point - 0.001 points, and the operation requires 5 million users (the first number). Since the second number is greater than or equal to the first number, 5 million users are intercepted based on the second number starting from 1 point.
[0073] Step 105: Verify the training process of the lightGBM model according to the first similar population expansion result. If the verification is passed, output the trained lightGBM model.
[0074] In a specific embodiment, the first user feature includes a target feature, and step 105 includes:
[0075] Step 1051: If the first similar group expansion result includes the seed user, the first user features of the seed user are sorted according to importance to obtain a feature sorting result.
[0076] Step 1052: determining important features according to the feature sorting result;
[0077] Step 1053: If the important feature coincides with the target feature, it means that the training process of the lightGBM model has passed the verification.
[0078] It should be noted that the prerequisite in step 1051 is that the expansion result of the first similar population includes the seed user. This step is to verify the accuracy of the population expansion and whether the expanded population contains the seed user population. If there is not even a seed population, it means that there is a problem with the expansion algorithm and it is an invalid expansion. Therefore, it is necessary to verify this prerequisite step.
[0079] It should be mentioned that step 1051, step 1052 and step 1053 are to sort the features of the expanded population. If the preset target features are 20, the top 20 important features can be determined based on the feature sorting results, such as clicking the checkout page more than 2 times, browsing the checkout page for more than 30 seconds, playing the checkout movie twice and the start time is more than 1 minute, giving the movie a 5-star rating, being a user who purchases an annual card, and being sensitive to the price of the product package, etc. If these 20 important features coincide with the target features, that is, they meet the expectations of the algorithm parameter settings in the training process, indicating that the expanded population meets the requirements. If the 20 important features are all empty values or do not meet expectations, it means that this expansion does not meet the requirements, that is, the training process verification fails.
[0080] Through the above process, a trained lightGBM model can be obtained for subsequent direct application without the need for retraining each time, thereby improving the efficiency of expanding similar populations.
[0081] Figure 2 A flow chart of a method for expanding a similar population provided in an embodiment of the present application, such as Figure 2 As shown, a method for expanding a similar population includes:
[0082] Step 201: obtaining seed users and non-seed users, wherein the seed users have a first user characteristic and the non-seed users have a second user characteristic.
[0083] It should be noted that the seed users and non-seed users in step 201 are defined based on the characteristics of the population that needs to be expanded. Further, in this application, the seed users can be defined on the Jiguang engine platform.
[0084] Step 202: Determine the number of the second similar groups to be expanded.
[0085] It should be noted that the second number of similar groups is the number of target groups that need to be expanded in specific application scenarios.
[0086] Step 203: input the seed users, non-seed users and the number of the second similar population to be expanded into the trained lightGBM model to obtain the second similar population expansion result.
[0087] It should be noted that on the Aurora Engine platform, the trained lightGBM model can be called through a remote ssh connection.
[0088] It should be mentioned that since the trained lightGBM model has passed the accuracy verification, it can be directly applied. After determining the input data, you can directly input it to get the second similar population expansion result.
[0089] In a specific embodiment, the seed user includes a first tag ID, and after step 203, the following steps are further included:
[0090] A second tag ID is constructed for the second similar group expansion result, and the second tag ID is associated with the first tag ID.
[0091] It should be mentioned that this step is to return the population expansion results obtained by the algorithm to the Aurora Engine platform. Since the expanded population includes a part of new population (for example, there are 300,000 seed users (including the first label ID), and the second similar population expansion result after expansion is 5 million, of which 4.7 million are new populations), a second label ID will be generated for the new population, and the second label ID is associated with the first label ID. In this way, it can be traced back to the same group of similar people, and operators can operate based on these population data.
[0092] In one possible embodiment, the present application has conducted an experiment according to the above technical solution to verify the effectiveness of the present application. Specifically, the first group of historical non-low-sensitivity high-demand users of a certain social platform is expanded to 600,000, and the second group of historical non-high-sensitivity high-demand users of the social platform is expanded to 300,000, and then the first group and the second group of data are divided into an experimental group and a control group. The experimental group is cashed independently and dynamic circulation is achieved according to the user effect, while the control group is cashed on a basic basis and no circulation is made.
[0093] The results show: ① The independent checkout counter strategy is more effective than the basic checkout counter, and the payment rate and ARPU of low-sensitivity and high-need users are 20% higher than the control group, and the total revenue is 52% higher than the control group.
[0094] ② The revenue of the high-sensitivity and high-demand experimental group increased by only 1.5%, the payment rate increased by 3.3%, but the ARPU value decreased by 2%. In the future, we may consider offering an independent cashier with a quarterly or half-year package.
[0095] ③The payment rate after dynamic population flow increases by up to 100%.
[0096] According to the above embodiments, the present application is applied to advertising, which greatly improves the user payment rate, indicating that the similarity population expansion based on the technical solution of the present application is highly accurate and the precision is not affected by the number of expansions.
[0097] Figure 3 A module diagram of a similar population expansion model training system provided in an embodiment of the present application, such as Figure 3 As shown, a similar population expansion model training system includes:
[0098] The training set construction module 301 is used to construct a training set, wherein the training set includes seed users and non-seed users, wherein the seed users have a first user feature, and the non-seed users have a second user feature.
[0099] In a specific embodiment, the training set construction module 301 is specifically used for:
[0100] Marking the seed users and non-seed users respectively;
[0101] The first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user to obtain a training set.
[0102] The first quantity determination module 302 is used to determine the quantity of the first similar groups of people to be expanded, recorded as the first quantity.
[0103] In a specific embodiment, after splicing the first user feature with the marked seed user and splicing the second user feature with the marked non-seed user, the method further includes:
[0104] Recording the first user feature after being spliced with the seed user as a first spliced feature, and recording the second user feature after being spliced with the non-seed user as a second spliced feature;
[0105] The first concatenated feature and the second concatenated feature are subjected to continuous feature discretization, null value feature smoothing, discrete feature encoding, and positive and negative sample balancing to obtain a training set.
[0106] The model training module 303 is used to input the training set into the lightGBM model to train the lightGBM model, and output the expanded similar population, and record the number of the expanded similar population as the second number, which is greater than or equal to the first number.
[0107] The sorting module 304 is used to sort the expanded similar population and intercept the second number according to the first number to obtain a first similar population expansion result.
[0108] The model verification module 305 is used to verify the training process of the lightGBM model according to the first similar population expansion result, and output the trained lightGBM model if the verification is passed.
[0109] In a specific embodiment, the first user feature includes a target feature, and the model verification module 305 is specifically used to:
[0110] If the first similar group expansion result includes the seed user, sorting the first user features of the seed user according to their importance to obtain a feature sorting result;
[0111] Determine important features according to the feature sorting results;
[0112] If the important feature coincides with the target feature, it means that the training process of the lightGBM model has passed the verification.
[0113] Figure 4 A module diagram of an expansion system for similar groups of people provided in an embodiment of the present application, such as Figure 4 As shown, a similar group expansion system includes:
[0114] The data acquisition module 401 is used to acquire seed users and non-seed users, wherein the seed users have a first user characteristic and the non-seed users have a second user characteristic.
[0115] The target number determination module 402 is used to determine the number of the second similar groups to be expanded.
[0116] The similar group expansion module 403 is used to input the seed users, non-seed users and the number of the second similar groups to be expanded into the trained lightGBM model to obtain the second similar group expansion result.
[0117] In a specific embodiment, the seed user includes a first tag ID, and after the similar group expansion module 403, it also includes:
[0118] The second tag ID construction module is used to construct a second tag ID for the second similar group expansion result, and the second tag ID is associated with the first tag ID.
[0119] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the expansion model training method of similar groups of people, and the method includes:
[0120] A training set is constructed, wherein the training set includes seed users and non-seed users, wherein the seed users have a first user feature, and the non-seed users have a second user feature.
[0121] The number of the first similar groups to be expanded is determined and recorded as the first number.
[0122] The training set is input into the lightGBM model to train the lightGBM model, and an expanded group of similar people is output. The number of the expanded group of similar people is recorded as a second number, and the second number is greater than or equal to the first number.
[0123] The expanded similar population is sorted, and the second number is intercepted according to the first number to obtain a first similar population expansion result.
[0124] The training process of the lightGBM model is verified according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output.
[0125] Or perform a similar population expansion method, the method comprising:
[0126] A seed user and a non-seed user are obtained, wherein the seed user has a first user characteristic, and the non-seed user has a second user characteristic.
[0127] Determine the number of second similar groups to be expanded.
[0128] The seed users, non-seed users and the number of the second similar population to be expanded are input into the trained lightGBM model to obtain the second similar population expansion result.
[0129] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of 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 described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0130] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can perform a similar population expansion model training method, the method comprising:
[0131] A training set is constructed, wherein the training set includes seed users and non-seed users, wherein the seed users have a first user feature, and the non-seed users have a second user feature.
[0132] The number of the first similar groups to be expanded is determined and recorded as the first number.
[0133] The training set is input into the lightGBM model to train the lightGBM model, and an expanded group of similar people is output. The number of the expanded group of similar people is recorded as a second number, and the second number is greater than or equal to the first number.
[0134] The expanded similar population is sorted, and the second number is intercepted according to the first number to obtain a first similar population expansion result.
[0135] The training process of the lightGBM model is verified according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output.
[0136] Or perform a similar population expansion method, the method comprising:
[0137] A seed user and a non-seed user are obtained, wherein the seed user has a first user characteristic, and the non-seed user has a second user characteristic.
[0138] Determine the number of second similar groups to be expanded.
[0139] The seed users, non-seed users and the number of the second similar population to be expanded are input into the trained lightGBM model to obtain the second similar population expansion result.
[0140] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform an expansion model training method for similar populations, the method comprising:
[0141] A training set is constructed, wherein the training set includes seed users and non-seed users, wherein the seed users have a first user feature, and the non-seed users have a second user feature.
[0142] The number of the first similar groups to be expanded is determined and recorded as the first number.
[0143] The training set is input into the lightGBM model to train the lightGBM model, and an expanded group of similar people is output. The number of the expanded group of similar people is recorded as a second number, and the second number is greater than or equal to the first number.
[0144] The expanded similar population is sorted, and the second number is intercepted according to the first number to obtain a first similar population expansion result.
[0145] The training process of the lightGBM model is verified according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output.
[0146] Or perform a similar population expansion method, the method comprising:
[0147] A seed user and a non-seed user are obtained, wherein the seed user has a first user characteristic, and the non-seed user has a second user characteristic.
[0148] Determine the number of second similar groups to be expanded.
[0149] The seed users, non-seed users and the number of the second similar population to be expanded are input into the trained lightGBM model to obtain the second similar population expansion result.
[0150] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0151] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for training an expansion model of similar people, characterized in that: include: Construct a training set, wherein the training set includes seed users and non-seed users, the seed users have a first user feature, and the non-seed users have a second user feature; Determine the number of the first similar groups to be expanded, recorded as the first number; Input the training set into the lightGBM model to train the lightGBM model, and output an expanded similar population, and record the number of the expanded similar population as a second number, where the second number is greater than or equal to the first number; Sorting the expanded similar groups of people, and intercepting the second number according to the first number to obtain a first similar group expansion result; The training process of the lightGBM model is verified according to the first similar population expansion result. If the verification is passed, the trained lightGBM model is output.
2. The method for training a similar population expansion model according to claim 1, characterized in that: Construct a training set, including: Marking the seed user and the non-seed user respectively; The first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user to obtain a training set.
3. The method for training a similar population expansion model according to claim 2, characterized in that: After the first user feature is concatenated with the marked seed user, and the second user feature is concatenated with the marked non-seed user, the method further includes: Recording the first user feature after being spliced with the seed user as a first spliced feature, and recording the second user feature after being spliced with the non-seed user as a second spliced feature; The first splicing feature and the second splicing feature are subjected to continuous feature discretization, null value feature smoothing, discrete feature encoding, and positive and negative sample balancing to obtain the training set.
4. The method for training an expansion model of similar populations according to any one of claims 1 to 3, characterized in that: The first user feature includes a target feature, and the training process of the lightGBM model is verified according to the first similar population expansion result, including: If the first similar group expansion result includes the seed user, sorting the first user features of the seed user according to their importance to obtain a feature sorting result; Determine important features according to the feature sorting results; If the important feature coincides with the target feature, it means that the training process of the lightGBM model has passed the verification.
5. A method for expanding similar groups of people, characterized in that: include: Acquire a seed user and a non-seed user, wherein the seed user has a first user characteristic, and the non-seed user has a second user characteristic; Determine the number of the second similar group to be expanded; The seed users, non-seed users and the number of the second similar population to be expanded are input into the trained lightGBM model according to any one of claims 1 to 4 to obtain the second similar population expansion result.
6. The method for expanding similar groups of people according to claim 5, characterized in that: The seed user includes a first tag ID, and after obtaining the second similar group expansion result, it also includes: A second tag ID is constructed for the second similar group expansion result, and the second tag ID is associated with the first tag ID.
7. An expansion model training system for similar people, characterized in that: include: A training set construction module, used to construct a training set, wherein the training set includes seed users and non-seed users, the seed users have a first user feature, and the non-seed users have a second user feature; A first quantity determination module, used to determine the quantity of the first similar group of people to be expanded, recorded as the first quantity; A model training module, used for inputting the training set into the lightGBM model to train the lightGBM model, and outputting an expanded similar population, recording the number of the expanded similar population as a second number, wherein the second number is greater than or equal to the first number; a sorting module, used for sorting the expanded similar population, and intercepting the second number according to the first number to obtain a first similar population expansion result; The model verification module is used to verify the training process of the lightGBM model according to the first similar population expansion result, and if the verification is passed, the trained lightGBM model is output.
8. A similar group expansion system, characterized in that: include: A data acquisition module, used to acquire seed users and non-seed users, wherein the seed users have a first user characteristic and the non-seed users have a second user characteristic; A target quantity determination module, used to determine the quantity of the second similar population to be expanded; A similar population expansion module is used to input the seed users, non-seed users and the number of second similar populations to be expanded into the trained lightGBM model described in any one of claims 1-4 to obtain a second similar population expansion result.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, it implements the similar population expansion model training method as described in any one of claims 1-4, or the similar population expansion method as described in any one of claims 5-6.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the similar population expansion model training method as described in any one of claims 1-4, or the similar population expansion method as described in any one of claims 5-6.
