Strategy matching method, device, electronic device and storage medium
Offline evaluation and simulation testing using historical data solves the problem in the existing technology that strategy evaluation needs to be implemented online, enables flexible adjustment and time saving of strategy evaluation, and avoids impact on actual business.
Patent Information
- Application Number
- CN201910836954.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-09-05
AI Technical Summary
In the existing technology, strategy evaluation needs to be implemented online, and the testing cycle is long and can easily affect actual business.
By using historical data for offline evaluation, select samples from historical data based on the actual recommended business types included in the recommendation strategy, conduct multiple simulation tests to determine the samples that match the strategy, and adjust the strategy based on the response information of the samples to save testing time and avoid impact on online business.
It achieves flexible adjustment and time saving of strategy evaluation, reduces the sample size required for testing, and avoids the negative impact of online testing on actual business.
Smart Images

Figure CN112445699B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a strategy matching method, device, electronic device and storage medium. Background Art
[0002] Before the recommended strategy is launched, the possible effect of the strategy needs to be evaluated. The main method currently used is small-traffic AB testing, and then decide whether the strategy needs to be adjusted or promoted online based on the test performance.
[0003] The strategy evaluation scheme adopted in related technologies is AB testing, which selects experimental subjects with a certain amount of traffic and divides them into a control group and an experimental group, respectively implementing the old strategy and the new strategy, and then compares the main indicators and conducts statistical significance tests to evaluate whether the strategy has a positive improvement. Generally, the experiment needs to last for several cycles, and go through the stages of small traffic-expansion-full promotion, and finally take effect completely online.
[0004] Since this type of strategy evaluation requires online testing, the strategy tested in the experiment is actually run online. If there are problems with the strategy or operational errors, it will have a negative impact on the actual business. In addition, the test cycle is long. In order to obtain statistically significant results, the experiment needs to run for a sufficient amount of time to obtain the required sample size, and the results cannot be obtained quickly.
[0005] In summary, the policy evaluation scheme in the related technology needs to be implemented online, the testing cycle is long, and it is easy to affect the actual business. Summary of the invention
[0006] The present disclosure provides a strategy matching method, device, electronic device and storage medium to at least solve the problem that the strategy evaluation scheme in the related art needs to be implemented online, has a long test cycle, and is easy to affect the actual business. The technical solution of the present disclosure is as follows:
[0007] According to a first aspect of an embodiment of the present disclosure, a strategy matching method is provided, including:
[0008] Determine, from historical data, a historical sample set including a plurality of samples according to an actually recommended service type included in a recommendation strategy for recommending service types for an object, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type, and object response information, wherein the object response information is determined according to an operation of the object on the actually recommended service;
[0009] According to the object attributes and the recommendation strategy, performing multiple simulation tests on the samples in the historical sample set;
[0010] After each simulation test, according to the simulated business type obtained in this simulation test and the actual recommended business type contained in the sample used in this simulation test, determine the sample matching the recommendation strategy;
[0011] According to the object response information contained in the sample matching the recommendation policy, an object attribute corresponding to the business type recommended by the recommendation policy is determined.
[0012] In an optional implementation, the process of performing simulation test on the samples in the historical sample set each time includes:
[0013] Selecting samples from the historical sample set;
[0014] The object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy and is determined by a previous simulation test, and contains the same object attributes as the selected sample;
[0015] The simulated business type is determined according to the output parameters of the recommendation strategy.
[0016] In an optional implementation, the step of determining the simulated service type according to the output parameters of the recommendation strategy includes:
[0017] Determining a target preset interval including the output parameter from a plurality of preset intervals, wherein the plurality of preset intervals are determined according to granularities corresponding to the recommendation strategy;
[0018] A simulated business type including the target preset interval is selected from a plurality of simulated business types corresponding to the recommendation strategy.
[0019] In an optional implementation, the step of determining the sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actually recommended service type included in the sample used in the simulation test includes:
[0020] If the simulated business type is the same as the actually recommended business type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0021] If the simulated business type is different from the actually recommended business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is the same as the simulated business type.
[0022] In an optional implementation, the step of determining the sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actually recommended service type included in the sample used in the simulation test includes:
[0023] If the actually recommended service type is within the target preset interval included in the simulated service type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0024] If the actually recommended business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is within the target preset interval included in the simulated business type.
[0025] In an optional implementation, the step of determining, based on the object response information included in the sample matching the recommendation policy, the object attribute corresponding to the business type recommended by the recommendation policy includes:
[0026] According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types;
[0027] Group samples of the same category that contain the same object attributes into one set;
[0028] Determine, based on the object response information contained in the samples in the same set, a set corresponding to the business type recommended by the recommendation strategy from the sets obtained by dividing the samples in the same category;
[0029] The object attributes included in the samples in the set are used as the object attributes corresponding to the business type recommended by the recommendation strategy.
[0030] In an optional implementation, the strategy matching method further includes:
[0031] If the number of samples that have undergone simulation testing reaches a first preset value, the simulation testing is stopped; or
[0032] If the number of samples matching the recommended strategy reaches a second preset value, the simulation test is stopped.
[0033] According to a second aspect of an embodiment of the present disclosure, a strategy matching device is provided, including:
[0034] A first determining unit is configured to determine, from historical data, a historical sample set including a plurality of samples according to an actually recommended service type included in a recommendation strategy for recommending service types for an object, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type, and object response information, wherein the object response information is determined according to an operation of the object on the actually recommended service;
[0035] A testing unit, configured to perform multiple simulation tests on samples in the historical sample set according to the object attributes and the recommendation strategy;
[0036] A second determination unit is configured to determine, after each simulation test, a sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actual recommended service type included in the sample used in the simulation test;
[0037] The third determining unit determines, according to the object response information included in the sample matching the recommendation policy, an object attribute corresponding to the business type recommended by the recommendation policy.
[0038] In an optional implementation, the test unit is specifically configured to execute:
[0039] Each time a simulation test is performed on a sample in the historical sample set, a sample is selected from the historical sample set;
[0040] The object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy and is determined by a previous simulation test, and contains the same object attributes as the selected sample;
[0041] The simulated business type is determined according to the output parameters of the recommendation strategy.
[0042] In an optional implementation, the test unit is specifically configured to execute:
[0043] Determining a target preset interval including the output parameter from a plurality of preset intervals, wherein the plurality of preset intervals are determined according to granularities corresponding to the recommendation strategy;
[0044] A simulated business type including the target preset interval is selected from a plurality of simulated business types corresponding to the recommendation strategy.
[0045] In an optional implementation, the second determining unit is specifically configured to execute:
[0046] If the simulated business type is the same as the actually recommended business type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0047] If the simulated business type is different from the actually recommended business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is the same as the simulated business type.
[0048] In an optional implementation, the second determining unit is specifically configured to execute:
[0049] If the actually recommended service type is within the target preset interval included in the simulated service type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0050] If the actually recommended business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is within the target preset interval included in the simulated business type.
[0051] In an optional implementation, the third determining unit is specifically configured to execute:
[0052] According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types;
[0053] Group samples of the same category that contain the same object attributes into one set;
[0054] Determine, based on the object response information contained in the samples in the same set, a set corresponding to the business type recommended by the recommendation strategy from the sets obtained by dividing the samples in the same category;
[0055] The object attributes included in the samples in the set are used as the object attributes corresponding to the business type recommended by the recommendation strategy.
[0056] In an optional implementation, the test unit is further configured to execute:
[0057] If the number of samples that have undergone simulation testing reaches a first preset value, the simulation testing is stopped; or
[0058] If the number of samples matching the recommended strategy reaches a second preset value, the simulation test is stopped.
[0059] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0060] processor;
[0061] a memory for storing instructions executable by the processor;
[0062] The processor is configured to execute the instructions to implement the strategy matching method described in any one of the first aspects of the embodiments of the present disclosure.
[0063] According to a fourth aspect of an embodiment of the present disclosure, a non-volatile readable storage medium is provided. When instructions in the storage medium are executed by a processor of a policy matching device, the policy matching device can execute the policy matching method described in any one of the first aspects of the embodiment of the present disclosure.
[0064] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device executes the above-mentioned first aspect of the embodiment of the present disclosure and any method that may be involved in the first aspect.
[0065] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0066] Since the embodiments of the present disclosure use historical data for offline evaluation, and for a certain recommendation strategy, samples need to be selected from the historical data according to the actual recommended business types contained in the recommendation strategy, different samples can be selected for different recommendation strategies, and thus different samples can be selected as needed to construct different historical sample sets for testing, which facilitates flexible adjustment of the recommendation strategy. At the same time, since some samples in the historical sample sets corresponding to different recommendation strategies may be consistent, the amount of samples required for testing can be saved; in addition, the historical data is counted in advance, and each time the recommendation strategy is evaluated, only enough samples need to be selected for testing, which saves more time and has a shorter measurement cycle; in addition, since the present disclosure uses historical data for offline evaluation, it does not affect the actual online business.
[0067] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0069] Figure 1 The figure is a flow chart of a strategy matching method according to an exemplary embodiment.
[0070] Figure 2It is a schematic diagram showing a simulation test process according to an exemplary embodiment.
[0071] Figure 3 The diagram is a schematic diagram showing a simulated relationship between a service type and a preset interval according to an exemplary embodiment.
[0072] Figure 4 The figure is a schematic diagram showing a method of calculating an average value of object response information according to an exemplary embodiment.
[0073] Figure 5 The figure is a flow chart of a complete method for policy matching according to an exemplary embodiment.
[0074] Figure 6 The figure is a block diagram of a strategy matching device according to an exemplary embodiment.
[0075] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0076] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0077] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0078] The following are explanations of some of the terms that appear in the text:
[0079] 1. In the embodiments of the present disclosure, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0080] 2. In the embodiments of the present disclosure, the term "electronic device" refers to equipment composed of electronic components such as integrated circuits, transistors, and electron tubes, and which uses electronic technology (including) software to function, including electronic computers and robots controlled by electronic computers, numerical control or program control systems, etc.
[0081] 3. The term "MAB (Multi-armed bandit) model" in the embodiments of the present disclosure is a mathematical model extracted from the scenario of a multi-armed bandit in a casino. It is assumed that the bandit has K arms, and the player can choose to press one of the arms after inserting a coin. Each arm spits out a coin with a certain probability, but this probability is unknown. The player provides a certain strategy to maximize his reward)".
[0082] 4. The term "retention rate" in the embodiments of the present disclosure refers to the fact that in the Internet industry, users who start using an application within a certain period of time and continue to use the application after a period of time are considered retained users. The proportion of these users to the newly added users at that time is the retention rate, which will be counted every 1 unit of time (for example, day, week, month). As the name suggests, retention refers to "how many users stay". Retained users and retention rate reflect the quality of the application and the ability to retain users.
[0083] 5. The term "AB testing" in the embodiments of the present disclosure means creating two (A / B) or multiple (A / B / n) versions for a Web (World Wide Web) or App (Application) interface or process, allowing visitor groups with the same (similar) components to randomly access these versions in the same time dimension, collecting user experience data and business data from each group, and finally analyzing and evaluating the best version for formal adoption.
[0084] 6. The term "statistical significance" in the embodiments of the present disclosure is short for significance, which refers to the risk level of rejecting the null hypothesis when the null hypothesis is true, also called the probability level, or the significance level. The meaning of significance is that any difference between the attitudes of two groups is due to systematic factors rather than accidental factors. It is assumed that all other factors that may affect the difference between the two groups are controlled. Therefore, the remaining explanation is the inferred factor, and this factor cannot be 100% guaranteed, so there is a certain probability value, called the significance level. In general, it represents the ability of groups to distinguish from each other. In statistical hypothesis testing, the probability value of a recognized low-probability event is called the significance level of the statistical hypothesis test. The same quantity is measured multiple times and the average value is calculated.
[0085] The application scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems. In the description of the present disclosure, unless otherwise specified, the meaning of "multiple" is the same.
[0086] The technical solution of the present disclosure can be applied to the scenario of evaluating the possible effect of a strategy before the recommended strategy is launched, and is generally used for testing before releasing new products or new features. With the rapid development of Internet technology, strategies are generally evaluated before they are adjusted or promoted online to eliminate disputes over different opinions in customer experience design, determine the best solution based on actual effects, and improve product design and operation levels. A common method is small-traffic AB testing. The present disclosure embodiment provides a strategy matching method based on the MAB model, which is an offline evaluation solution that can be applied in the above scenarios.
[0087] Figure 1 is a flow chart of a strategy matching method according to an exemplary embodiment. Figure 1 As shown, the following steps are included.
[0088] In step S11, according to the actually recommended service type included in the recommendation strategy for recommending service types for the object, a historical sample set including multiple samples is determined from historical data, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type and object response information, and the object response information is determined according to the operation of the object on the actually recommended service;
[0089] In an optional embodiment, the recommended strategy refers to the MAB strategy, including but not limited to some or all of the following:
[0090] Constant (fixed option), Epsilon-Greedy (greedy algorithm), UCB (The Upper Confidence Bound Algorithm, upper confidence algorithm), Thompson Sampling (Thompson sampling), Linear UCB (linear upper confidence algorithm), Linear Thompson (linear Thompson).
[0091] Among them, the object response information is determined based on the object's operation on the actual recommended business. Taking a recommended video as an example, the object response information is determined based on whether the user clicks on the video recommended for the user. The object's operation on the actual recommended business refers to clicking on the video or not clicking on the video.
[0092] In step S12, multiple simulation tests are performed on samples in the historical sample set according to the object attributes and the recommendation strategy;
[0093] In step S13, after each simulation test, the sample matching the recommendation strategy is determined according to the simulated service type obtained in the simulation test and the actual recommended service type included in the sample used in the simulation test;
[0094] In step S14, the object attribute corresponding to the business type recommended by the recommendation policy is determined according to the object response information included in the sample matching the recommendation policy.
[0095] In the above scheme, since the embodiment of the present disclosure uses historical data for offline evaluation, and for a certain recommendation strategy, it is necessary to select samples from the historical data according to the actual recommended business type contained in the recommendation strategy, different samples can be selected for different recommendation strategies, and thus different samples can be selected as needed to construct different historical sample sets for testing, which facilitates flexible adjustment of the recommendation strategy. At the same time, since some samples in the historical sample sets corresponding to different recommendation strategies may be consistent, the amount of samples required for testing can be saved; in addition, the historical data is counted in advance, and each time the recommendation strategy is evaluated, only enough samples need to be selected for testing, which saves more time and has a shorter measurement cycle; in addition, since the present disclosure uses historical data for offline evaluation, it does not affect the actual online business.
[0096] In the disclosed embodiment, historical data is a large collection of historical data formed by statistically analyzing actual historical data online, such as historical data of each user at each moment under each actual strategy. The actual strategy refers to the model, algorithm, etc. when generating historical data.
[0097] The recommendation strategy in the embodiment of the present disclosure is used to recommend a business type for an object. When the business is a recommended video, the business type may refer to the type of video, such as sports, education, and games.
[0098] Before evaluating a recommendation strategy, samples are selected from historical data according to the actual recommended business types included in the recommendation strategy to generate a historical sample set. Different samples can be selected from historical data to generate different historical sample sets for different strategies.
[0099] Taking recommendation strategy 1 for recommending videos as an example, assuming that the actual recommended business types included in recommendation strategy 1 are: sports, education, and games, then some data generation samples that recommend sports, education, and game videos to users are selected from historical data to construct historical sample set 2.
[0100] Taking recommendation strategy 2 for recommending videos as an example, assuming that the actual recommended business types included in recommendation strategy 2 are: finance, technology, and national defense, then some data generation samples that recommend finance, technology, and national defense videos to users are selected from historical data to construct historical sample set 3.
[0101] Specifically, for any recommended strategy, historical data of actual business operations is selected to construct a historical sample set of the strategy to evaluate the effectiveness of the strategy. In the related art, the experimental objects and recommended strategies are fixed. After the experimental groups are divided, the objects included in each group and the strategies implemented are fixed and cannot be adjusted during the experiment. Since the embodiments of the present disclosure can select different samples from the common actual data as needed to construct different historical sample sets, it is convenient for flexible adjustment of the strategy and can save the sample volume required for simulation testing.
[0102] In an optional implementation, when selecting historical data of actual business occurrence to construct the historical sample set of the strategy, before the experiment is started, actual historical data of the same or similar business environment can be selected from historical data to construct the historical sample set based on the business environment tested by the recommended strategy.
[0103] For example, when the business environment tested by a recommendation strategy is to recommend videos to users, the object response information indicates whether the user clicks to view the video, and the business type is the type of video, then samples whose object response information is clicks contained in the historical data are selected; or, when the business environment tested by a recommendation strategy is to increase the exposure of a certain type of video, then samples of a period of time when this type of video is recommended more frequently are selected from the historical data.
[0104] In an optional implementation, a sample in the constructed historical sample set includes the following content:
[0105] 1. Object attributes refer to indicators (features) related to the policy. When the objects included in the sample are users, the object attributes are user attributes, such as the user's gender, age, type of terminal device used by the user, province, mobile phone price, etc.
[0106] 2. Actual recommended business type: In historical business, the actual recommended business type (arm) calculated based on the object attributes through the model and algorithm at that time.
[0107] 3. Object response information: In historical services, the actual feedback (reward) given by the object under the actually recommended service type is determined based on the object's operation on the actually recommended service.
[0108] Since the historical sample set containing the above content will serve as the basis for subsequent offline simulation and evaluation, the number of samples contained in the historical sample set generally needs to be set relatively large, so that a more accurate evaluation can be obtained.
[0109] It should be noted that the contents contained in the samples listed in the embodiments of the present disclosure are only examples and are not limited to them.
[0110] In the disclosed embodiment, multiple simulation tests are performed on samples in the historical sample set by recommending a strategy, and samples matching the strategy are determined after each simulation test.
[0111] Optionally, samples that match the recommended strategy determined by previous simulation tests may be added to the historical performance set corresponding to the strategy.
[0112] In an optional implementation, each time a simulation test is performed on a sample included in a historical sample set through a recommendation strategy, the following process is performed: Figure 2 As shown:
[0113] In step S21, a sample is selected from a historical sample set;
[0114] In step S22, the object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy determined by the previous simulation test and contains the same object attributes as the selected sample;
[0115] If the samples that match the recommended strategy determined by the previous simulation test are added to the historical performance set corresponding to the strategy, the target samples are samples included in the latest historical performance set whose object attributes are the same as those of the selected samples.
[0116] For example, the samples in the latest historical performance set include sample 1, sample 2, and sample 10, among which the sample selected this time is sample 13. Among samples 1, sample 2, and sample 10, sample 1 and sample 10 have the same object attributes as sample 13, so the target samples are sample 1 and sample 10.
[0117] In step S23, the simulated service type is determined according to the output parameters of the strategy.
[0118] If at least one sample is selected from the historical sample set, then for each selected sample:
[0119] The object attributes and object response information contained in the sample, as well as the actual recommended business type and object response information contained in the target sample contained in the latest historical performance set are input as input parameters of the recommendation strategy, and the output parameter (arm) is obtained through calculation, and the simulated business type is determined according to the output parameter. At this stage, the required algorithm can be selected from a variety of algorithms. If the simulated business type obtained by the algorithm is consistent with the actual recommended business type contained in the sample, it is determined that the sample matches the strategy, the sample is retained, and the sample is added to the historical performance set of the strategy for the next strategy calculation call; otherwise, the sample is discarded, and the next sample in the historical sample set is verified to match the strategy, and at least one sample that matches the strategy obtained by verification is added to the historical performance set of the strategy.
[0120] If multiple samples are selected, after a simulation test is performed on each selected sample, it is necessary to determine a sample that matches the strategy and add the determined sample to the historical performance set.
[0121] In the disclosed embodiment, the strategy is used to perform simulation tests on the selected samples and the samples that match the strategy are determined from the historical sample set and added to the historical performance set. These two processes are alternately iterated. After each simulation test, the samples that match the strategy are added to the historical performance set. The next simulation test uses the latest historical performance set and the samples used in the simulation test to perform the simulation test.
[0122] In an optional implementation, multiple simulation tests can be iteratively performed on a selected sample, that is, after a simulation test is performed on the sample, the simulated business type of this simulation test is obtained, and the sample matching the strategy is determined based on the simulated business type obtained in this simulation test and the actual recommended business type contained in the sample used in this simulation test, and the sample matching the strategy is added to the historical performance set corresponding to the strategy. When the sample is iterated (simulated test) for the next time, the process of the previous simulation test is repeated.
[0123] In an optional implementation, according to the simulated service type obtained in this simulation test and the actual recommended service type included in the sample used in this simulation test, the process of determining the sample matching the policy is as follows:
[0124] In any simulation test, assuming that a sample is selected and a simulated business type is obtained after a simulation test on the sample, it is determined whether the actual recommended business type contained in the sample is the same as the simulated business type obtained. If they are the same, it is determined that the sample matches the recommendation strategy and the sample is added to the historical performance set; if they are not the same, at least one sample is selected from the historical sample set, wherein the selected sample is a sample that contains the same actual recommended business type as the simulated business type obtained by the simulation test.
[0125] It should be noted that when selecting samples to be added to the historical performance set after the next simulation test, the previously judged samples will no longer be judged, but samples that have not been judged in the historical sample set will be selected.
[0126] For example, in a simulation test, a sample was selected: Sample 1, which contains:
[0127] Subject attributes: male; Business type: Recommended Class A videos; Subject response information: Click on the video.
[0128] When performing a simulation test on the sample, the object response information and object attributes contained in the sample are used as input parameters of the strategy. If the latest historical performance set includes at least one target sample, the actual recommended business type and object response information contained in the target sample are also used as input parameters of the strategy. For example, these are used as input parameters of the Linear UCB or Linear Thompson algorithm. After the output parameters are calculated by the algorithm, the simulated business type obtained in this simulation test is determined based on the output parameters.
[0129] When determining the simulated service type obtained in this simulation test according to the output parameter, the output parameter may be directly used as the simulated service type, or a simulated service type may be selected from a plurality of simulated service types corresponding to the policy according to the output parameter.
[0130] Assume that the latest historical performance set contains three samples, namely sample 2, sample 3 and sample 4, where the object attributes in sample 2 and sample 3 are both male, and the object attribute in sample 4 is female. When performing a simulation test on sample 1, the object attributes and object response information in sample 1, as well as the object attributes, the actually recommended business type and the object response information in samples 2 and 3 are all input into the algorithm as input parameters to calculate the simulated business type.
[0131] For example, sample 2 contains: object attributes: male; actual recommended business type: recommended Class A video; object response information: clicked video; sample 3 contains: object attributes: male; actual recommended business type: recommended Class A video; object response information: not clicked video; therefore, when the algorithm calculates based on the input parameters, assuming that the recommendation strategy determines that video B is recommended for the object in sample 1, the output parameter of the recommendation strategy is B.
[0132] Assume that sample 2 contains: object attributes: male; actual recommended business type: recommended Class A video; object response information: click video; sample 3 contains: object attributes: male; actual recommended business type: recommended Class B video; object response information: click video; therefore, when the algorithm calculates based on the input parameters, it can randomly select a type of video from A or B to determine as the recommended video for the object in sample 1. Assume that after calculation through the recommendation strategy, it is determined that video A is recommended for the object in sample 1. The output parameter of the recommendation strategy is A.
[0133] Since the samples in the historical performance set are referenced during the simulation test, the simulated business type is affected by the historical performance set, which reduces the randomness of the output parameters of the strategy and thus improves the effect of the simulation test.
[0134] In the embodiment of the present disclosure, when the conditions for stopping the simulation test are met, the simulation test is no longer performed. There are many conditions for stopping the simulation test, and two of them are listed below:
[0135] Stop condition 1: The number of samples that have undergone simulation testing reaches a first preset value.
[0136] Specifically, after each simulation test, it is determined whether the number of samples that have undergone simulation tests has reached a first preset value. If not, samples can continue to be selected for simulation testing. If reached, the simulation test is stopped.
[0137] For example, there are 100,000 samples in the historical sample set. Assuming the first preset value is 50,000, there are 40,000 samples that have been simulated tested at 10:00, which is less than the first preset value. Then continue to select samples for simulation testing until the number of samples selected reaches 50,000 at 12:00. The simulation test can be stopped after multiple simulation tests on the 50,000th sample selected.
[0138] Stop condition two: the number of samples matching the recommendation strategy reaches a second preset value, that is, the number of samples included in the historical performance set reaches a second preset value.
[0139] Specifically, after each time a sample matching a strategy is added to the historical performance set corresponding to the strategy, it is determined whether the number of samples in the historical performance set reaches a second preset value. If not, samples can continue to be selected for simulation testing. If so, the simulation testing is stopped.
[0140] For example, the second preset value is 30,000. Assuming that there are 20,000 samples that have been simulated tested at 10:00, which is less than the second preset value, continue to select samples for simulation testing and add successfully matched samples to the historical performance set corresponding to the strategy. Assuming that the number of samples in the historical performance set reaches 30,000 by 12:00, stop the simulation test thereafter.
[0141] In an optional implementation, when determining the object attribute corresponding to the service type recommended by the recommendation strategy, specifically:
[0142] According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types; the samples in the same category containing the same object attributes are divided into a set; according to the object response information contained in the samples in the same set, the target set corresponding to the business types recommended by the recommendation strategy is determined from the sets obtained by dividing the samples in the same category; the object attributes contained in the samples in the target set are used as the object attributes corresponding to the business types recommended by the recommendation strategy, wherein the average value of the object response information contained in the samples in the target set is the largest.
[0143] For example, taking user video recommendation as an example, assuming that the user's attribute refers to the user's gender, and the actual recommended business type refers to the type of video, including Class A and Class B. If the samples contain the same actual recommended business type, they belong to the same category of samples. Therefore, the samples in the historical performance set can be divided into two categories: those that recommend Class A videos and those that recommend Class B videos.
[0144] For samples of the same category, they can be divided into multiple sets according to the attributes of the users. The samples in the same set contain the same object attributes. Therefore, the samples of the category of recommending category A videos can be divided into two sets: male users who recommend category A videos (set 1) and female users who recommend category A videos (set 2). Similarly, the samples of the category of recommending category B videos can be divided into two sets: male users who recommend category B videos (set 3) and female users who recommend category B videos (set 4).
[0145] If, in set 1 and set 2, the average value of the object response information contained in the samples in set 1 is larger, then for the service type recommended by the recommendation strategy: Class A video, the corresponding object attribute is the object attribute contained in the samples in set 1: male.
[0146] Similarly, if in sets 3 and 4, the average value of the object response information contained in the samples in set 3 is larger, then for the business type recommended by the recommendation strategy: Class B video, the corresponding object attribute is the object attribute contained in the samples in set 3: male.
[0147] The following is a detailed example of determining the average value of the object response information:
[0148] Assume that there are a total of 10,000 samples in the historical performance set, of which 5,000 are male user samples and 5,000 are female user samples. Assume that among the 5,000 male user samples, 2,000 recommend Category A videos and 3,000 recommend Category B videos; and among the 5,000 female user samples, 3,000 recommend Category A videos and 2,000 recommend Category B videos.
[0149] For the 2000 male users who recommend category A videos, the average value of the object response information of these 2000 male users is calculated as the expectation of the object response information. An object response information of 1 indicates that the video is clicked, and an object response information of 0 indicates that the video is not clicked. Assuming that 1000 users click on the video and 1000 users do not click on the video, the average value of the object response information is 0.5.
[0150] For the 3,000 male users who recommend category B videos, the average value of the object response information of these 3,000 male users is calculated as the expectation of the object response information. An object response information of 1 indicates that the video is clicked, and an object response information of 0 indicates that the video is not clicked. Assuming that 2,100 users click on the video and 900 users do not click on the video, the average value of the object response information is 0.7.
[0151] In summary, since 0.7>0.5, it is more appropriate to recommend Category B videos to male users, that is, recommending Category B videos to male users will bring higher benefits, that is, Category B videos are the optimal business type for male users, so Category B videos can be recommended to male users after the actual launch.
[0152] For the 3,000 female users who recommend category A videos, the average value of the object response information of these 3,000 female users is calculated as the expectation of the object response information. An object response information of 1 indicates that the video is clicked, and an object response information of 0 indicates that the video is not clicked. Assuming that 2,400 users click on the video and 600 users do not click on the video, the average value of the object response information is 0.8.
[0153] For the 2000 female users who recommend category B videos, the average value of the object response information of these 2000 female users is calculated as the expectation of the object response information. An object response information of 1 indicates that the video is clicked, and an object response information of 0 indicates that the video is not clicked. Assuming that 1200 users click on the video and 800 users do not click on the video, the average value of the object response information is 0.6.
[0154] In summary, since 0.8>0.6, it is more appropriate to recommend Category A videos to female users, that is, recommending Category A videos to female users will bring higher benefits, that is, Category A videos are the optimal business type for female users, so Category A videos can be recommended to female users after the actual launch.
[0155] The above method evaluates the recommendation strategy by calculating the benefit of the recommendation strategy, and takes the average value of the object response information fed back by users of each attribute under each strategy as the expectation of the object response information. In this way, the estimation of the object response information of each strategy under the historical sample set corresponding to the recommendation strategy can be obtained, and the optimal service type for users of each attribute can be selected from it. At the same time, the proportion of the selected sample size to the total sample size, the statistical test amount and other indicators can be saved to simulate the effect of offline evaluation.
[0156] In an optional implementation, there may be multiple historical performance sets corresponding to the recommendation strategy. For example, the samples may be divided according to the object attributes contained in the samples, and the samples with the same object attributes contained in the successfully matched samples may be divided into one historical performance set.
[0157] Taking the object as a user as an example, assuming that the object attribute is the user's gender, the samples whose object attribute is male users included in the successfully matched samples are a historical performance set: historical performance set 1 (a total of 2000 samples); the samples whose object attribute is female users are a historical performance set: historical performance set 2 (a total of 3000 samples).
[0158] When there are multiple historical performance sets corresponding to a strategy, since the samples in the same historical performance set have the same object attributes, the average of the object response information in the samples can be directly calculated for the samples with the same actual recommended business type.
[0159] For example, among the samples included in historical performance set 1: 1,000 samples contain the actual recommended business type A (that is, the actual recommended strategy is to recommend Class A videos), of which 500 samples contain object response information of 1 (indicating that the video is clicked), and the other 500 samples contain object response information of 0 (indicating that the video is not clicked); another 1,000 samples contain the actual recommended business type B (that is, the actual recommended strategy is to recommend Class B videos), of which 600 samples contain object response information of 1, and the other 400 samples contain object response information of 0. Therefore, the average of the object response information of the 1,000 samples containing the actual recommended business type A is calculated (the average value is 0.5), and the average of the object response information of the other 1,000 samples containing the actual recommended business type B is calculated (the average value is 0.6). Therefore, it can be seen that it is more suitable to recommend Class B videos to male users.
[0160] Similarly, among the samples included in historical performance set 2: 1000 samples contain the actual recommended business type A, of which 500 samples contain object response information of 1, and the other 500 samples contain object response information of 0; another 2000 samples contain the actual recommended business type B, of which 600 samples contain object response information of 1, and the other 1400 samples contain object response information of 0. Therefore, the average of the object response information of the 1000 samples containing the actual recommended business type A is calculated (the average value is 0.5), and the average of the object response information of the other 2000 samples containing the actual recommended business type B is calculated (the average value is 0.3). Therefore, it can be seen that it is more suitable to recommend type A videos to female users.
[0161] In an optional implementation, if multiple preset intervals are obtained according to the granularity of the policy, the policy corresponds to multiple simulated business types, and the samples in the historical sample set used for policy matching will also correspond to multiple candidate business types. A sample contains only one business type, and the business type contained in the sample is one of the multiple candidate business types.
[0162] The following is a detailed introduction to the new work video trigger experiment as an application case:
[0163] Dig out a batch of videos that can improve the new user indicators every day, and do AB experiments through the mined videos. Increase the exposure of these videos in the experimental group, and do not increase the exposure of these videos in the control group.
[0164] Based on the actual online historical data, user attributes (features) including user device type, province, mobile phone price and other indicators are generated, the proportion of increased exposure is used as the business type (arm), and whether the user is retained is used as the object response information (reward). Among them, the proportion of increased exposure refers to the proportion of videos in this batch of videos that increase exposure to the user.
[0165] In order to verify the effect of AB testing, only samples with increased exposure during the AB experiment are selected from historical data for AB testing simulation; when matching the recommended strategy, samples in similar business environments are selected from historical data to form a historical sample set, and the increased exposure ratio is divided into multiple preset intervals as the business types (arms) of multiple strategy simulations, such as Figure 3 As shown. For example, the exposure ratio can be set to include multiple arms with preset intervals of 0-10%, 10-20%, 20-30%, 30-40%, 40-50%, etc. For each sample, the Linear UCB and Linear Thompson algorithms are used to calculate the optimal output parameters for each user, and the simulated business type is determined according to the output parameters. Specifically, a target preset interval including the output parameters is determined from multiple preset intervals, wherein the multiple preset intervals are determined according to the granularity corresponding to the strategy; and a simulated business type including the target preset interval is selected from the multiple simulated business types corresponding to the strategy.
[0166] For example, if the output parameter of the strategy is 35%, it can be determined that 35% belongs to the preset interval of 30-40%, that is, the target preset interval is 30-40%, then the simulated business type arm4 containing the target preset interval is used as the simulated business type obtained in this simulation test, and then the simulated business type obtained in this simulation test and the actual recommended business type contained in the sample used in this simulation test are matched with the samples in the historical sample set to determine the samples that match the recommendation strategy, and the samples in the historical sample set whose exposure increase is within the exposure ratio interval corresponding to the simulated business type are retained as valid samples and added to the historical performance set.
[0167] In an optional implementation, when the simulated service type includes a preset interval, such as the above-mentioned increase in exposure ratio, the specific process of determining the sample matching the strategy according to the simulated service type obtained in this simulation test and the actual recommended service type included in the sample used in this simulation test is as follows:
[0168] If the business type is within the target preset interval included in the simulated business type, it is determined that the sample used in this simulation test matches the strategy; if the business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample that matches the strategy, wherein the actual recommended business type contained in the selected sample is within the target preset interval included in the simulated business type.
[0169] For example, if the business type is 25% and the target preset interval included in the simulated business type is 20-30%, then it is determined that the sample used in this simulation test matches the strategy and can be added to the historical performance set; but when the business type is 15%, it is not within 20-30%, then at least one sample containing the actual recommended business type within 20-30% is selected from the historical sample set as a sample that matches the strategy and is added to the historical performance set.
[0170] When evaluating the effectiveness of a strategy, the matching information between the strategy and the sample can be determined by calculating the average of the object response information, and the effectiveness of the strategy can be evaluated based on the matching information. For example, 100,000 valid samples (samples in the historical performance set) are selected, and the average of the object response information contained in the samples of the actual recommended business types in the preset intervals: 0-10%, 10-20%, 20-30%, 30-40%, 40-50% is calculated. Assuming that the business type is 25%, then the business type is within the preset interval of 20-30%.
[0171] For example, among 100,000 valid samples, 30,000 samples include actual recommended business types within the preset range of 0-10%, 20,000 samples include 10-20%, 10,000 samples include 20-30%, 20,000 samples include 30-40%, and 20,000 samples include 40-50%.
[0172] For example, for any preset interval, the object response information contained in the samples whose mobile phone prices are all in A tier is averaged, the object response information contained in the samples whose mobile phone prices are all in B tier is averaged, the object response information contained in the samples whose mobile phone prices are all in C tier is averaged, etc.; or the object response information contained in the samples in the interval that are in the same province is averaged, etc.
[0173] like Figure 4As shown in an embodiment of the present disclosure, taking the mobile phone price index as an example, the average value of the object response information of users in five different preset intervals and different price categories is calculated. Assuming that the maximum average value of the object response information is 0.5, it can be seen from the figure that the more suitable exposure ratio interval for users in category A is 20-40%, the more suitable exposure ratio interval for users in category B is 20-30%, and the more suitable exposure ratio interval for users in category C is 20-30%. Therefore, a preliminary expectation of the strategy is obtained before the actual launch. If the preliminary expectation is good, the strategy can be directly recommended for launch. If the preliminary expectation is poor, the strategy can be adjusted according to the result of the preliminary expectation.
[0174] For example, the average retention rate for the AB test simulation results is 0.46, which is consistent with the actual AB test results; the average retention rates for the strategies obtained for Linear UCB and Linear Thompson are 0.49 and 0.47 respectively, which are better than AB tests.
[0175] By using the MAB evaluation system in the embodiments of the present disclosure, simulation values consistent with actual AB tests can be obtained, and by dividing the preset intervals according to the policy granularity, more refined simulated business types can be obtained, and more refined strategies can be calculated, thereby improving business indicators.
[0176] Figure 5 This is a flow chart of a complete method for strategy matching according to an exemplary embodiment, taking a video recommendation strategy as an example, and specifically includes the following steps:
[0177] In step S51, before the experiment is started, samples under similar business environments are selected from historical data to generate a historical sample set according to the business environment tested by the video recommendation strategy;
[0178] In step S52, samples are selected from the historical sample set and a simulation test is performed on the selected samples using the video recommendation strategy;
[0179] In step S53, after the simulation test, the samples that match the strategy are determined to be added to the historical performance set corresponding to the strategy;
[0180] In step S54, it is determined whether the condition for stopping the simulation test is met, if so, step S55 is executed, otherwise, the process returns to step S52;
[0181] In step S55, the expectations of object response information included in samples of different user attributes and different business types in the historical performance set are counted respectively;
[0182] In step S56, the optimal service type of the sample containing the same user attribute is determined according to the expected size of the object response information contained in the sample containing different service types of the same user attribute;
[0183] In step S57, the optimal service type is used as the actual online service type to recommend videos to the user with the user attribute.
[0184] Among them, in step S54, there are two optional ways to determine whether the conditions for stopping the simulation test are met, namely, determining whether the first stop condition is met; determining whether the second stop condition is met. The specific determination process will not be repeated here.
[0185] Figure 6 FIG. 1 is a block diagram of a strategy matching device according to an exemplary embodiment. Figure 6 The device includes a first determining unit 600, a testing unit 601, a second determining unit 602 and a third determining unit 603.
[0186] The first determining unit 600 is configured to determine a historical sample set including a plurality of samples from historical data according to the actually recommended service type included in the recommendation strategy for recommending service types for the object, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type and object response information, and the object response information is determined according to the operation of the object on the actually recommended service;
[0187] The testing unit 601 is configured to perform multiple simulation tests on the samples in the historical sample set according to the object attributes and the recommendation strategy;
[0188] The second determination unit 601 is configured to determine, after each simulation test, a sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actual recommended service type included in the sample used in the simulation test;
[0189] The third determining unit 603 is configured to determine, according to the object response information included in the sample matching the recommendation policy, the object attribute corresponding to the business type recommended by the recommendation policy.
[0190] In an optional implementation, the testing unit 601 is specifically configured to execute:
[0191] Each time a simulation test is performed on a sample in the historical sample set, a sample is selected from the historical sample set;
[0192] The object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy and is determined by a previous simulation test, and contains the same object attributes as the selected sample;
[0193] The simulated business type is determined according to the output parameters of the recommendation strategy.
[0194] In an optional implementation, the testing unit 601 is specifically configured to execute:
[0195] Determining a target preset interval including the output parameter from a plurality of preset intervals, wherein the plurality of preset intervals are determined according to granularities corresponding to the recommendation strategy;
[0196] A simulated business type including the target preset interval is selected from a plurality of simulated business types corresponding to the recommendation strategy.
[0197] In an optional implementation, the second determining unit 602 is specifically configured to execute:
[0198] If the simulated business type is the same as the actually recommended business type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0199] If the simulated business type is different from the actually recommended business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is the same as the simulated business type.
[0200] In an optional implementation, the second determining unit 602 is specifically configured to execute:
[0201] If the actually recommended service type is within the target preset interval included in the simulated service type, it is determined that the sample used in this simulation test matches the recommended strategy; or
[0202] If the actually recommended business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is within the target preset interval included in the simulated business type.
[0203] In an optional implementation, the third determining unit 603 is specifically configured to execute:
[0204] According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types;
[0205] Group samples of the same category that contain the same object attributes into one set;
[0206] Determine, based on the object response information contained in the samples in the same set, a set corresponding to the business type recommended by the recommendation strategy from the sets obtained by dividing the samples in the same category;
[0207] The object attributes included in the samples in the set are used as the object attributes corresponding to the business type recommended by the recommendation strategy.
[0208] In an optional implementation, the testing unit 601 is further configured to execute:
[0209] If the number of samples that have undergone simulation testing reaches a first preset value, the simulation testing is stopped; or
[0210] If the number of samples matching the recommended strategy reaches a second preset value, the simulation test is stopped.
[0211] Regarding the device in the above embodiment, the specific manner in which each unit executes the request has been described in detail in the embodiment of the method, and will not be elaborated here.
[0212] Figure 7 is a block diagram of an electronic device 700 according to an exemplary embodiment, the device comprising:
[0213] Processor 710;
[0214] A memory 720 for storing instructions executable by the processor 710;
[0215] The processor 710 is configured to execute the instructions to implement the policy matching method in the embodiment of the present disclosure.
[0216] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 720 including instructions, and the instructions can be executed by the processor 710 of the electronic device 700 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0217] The embodiments of the present disclosure also provide a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the above-mentioned policy matching methods of the embodiments of the present disclosure or any method that may be involved in any one of the policy matching methods.
[0218] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0219] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A strategy matching method, It is characterized in that include: Determine, from historical data, a historical sample set including a plurality of samples according to an actually recommended service type included in a recommendation strategy for recommending service types for an object, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type, and object response information, wherein the object response information is determined according to an operation of the object on the actually recommended service; According to the object attributes and the recommendation strategy, multiple simulation tests are performed on the samples in the historical sample set; wherein each simulation test performs the following steps: Selecting samples from the historical sample set; The object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy and is determined by a previous simulation test, and contains the same object attributes as the selected sample; Determining a simulated business type according to output parameters of the recommendation strategy; After each simulation test, according to the simulated business type obtained in this simulation test and the actually recommended business type included in the sample used in this simulation test, determine the sample matching the recommendation strategy; According to the object response information contained in the sample matching the recommendation policy, an object attribute corresponding to the business type recommended by the recommendation policy is determined.
2. The strategy matching method according to claim 1, It is characterized in that The step of determining the simulated business type according to the output parameters of the recommendation strategy comprises: Determining a target preset interval including the output parameter from a plurality of preset intervals, wherein the plurality of preset intervals are determined according to granularities corresponding to the recommendation strategy; A simulated business type including the target preset interval is selected from a plurality of simulated business types corresponding to the recommendation strategy.
3. The strategy matching method according to claim 1, It is characterized in that The step of determining the sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actually recommended service type included in the sample used in the simulation test comprises: If the simulated business type is the same as the actually recommended business type, it is determined that the sample used in this simulation test matches the recommended strategy; or If the simulated business type is different from the actually recommended business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is the same as the simulated business type.
4. The strategy matching method according to claim 2, It is characterized in that The step of determining the sample matching the recommendation strategy according to the simulated service type obtained in this simulation test and the actually recommended service type included in the sample used in this simulation test comprises: If the actually recommended service type is within the target preset interval included in the simulated service type, it is determined that the sample used in this simulation test matches the recommended strategy; or If the actually recommended business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is within the target preset interval included in the simulated business type.
5. The strategy matching method according to claim 1, It is characterized in that The step of determining the object attribute corresponding to the business type recommended by the recommendation strategy according to the object response information contained in the sample matching the recommendation strategy comprises: According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types; Group samples of the same category that contain the same object attributes into one set; Determine, based on the object response information contained in the samples in the same set, a set corresponding to the business type recommended by the recommendation strategy from the sets obtained by dividing the samples in the same category; The object attributes included in the samples in the set are used as the object attributes corresponding to the business type recommended by the recommendation strategy.
6. The strategy matching method according to claim 1, It is characterized in that The strategy matching method further includes: If the number of samples that have undergone simulation testing reaches a first preset value, the simulation testing is stopped; or If the number of samples matching the recommended strategy reaches a second preset value, the simulation test is stopped.
7. A strategy matching device, It is characterized in that include: A first determining unit is configured to determine, from historical data, a historical sample set including a plurality of samples according to an actually recommended service type included in a recommendation strategy for recommending service types for an object, wherein each sample in the historical sample set includes an object attribute, an actually recommended service type, and object response information, wherein the object response information is determined according to an operation of the object on the actually recommended service; The testing unit is configured to perform multiple simulation tests on the samples in the historical sample set according to the object attributes and the recommendation strategy; wherein each simulation test performs the following steps: Selecting samples from the historical sample set; The object response information and object attributes contained in the selected sample, as well as the actually recommended business type and object response information contained in the target sample are used as input parameters of the recommendation strategy for calculation; wherein the target sample is a sample that matches the recommendation strategy and is determined by a previous simulation test, and contains the same object attributes as the selected sample; Determining a simulated business type according to output parameters of the recommendation strategy; A second determination unit is configured to determine, after each simulation test, a sample matching the recommendation strategy according to the simulated service type obtained in the simulation test and the actually recommended service type included in the sample used in the simulation test; The third determining unit determines, according to the object response information included in the sample matching the recommendation policy, an object attribute corresponding to the business type recommended by the recommendation policy.
8. The strategy matching device according to claim 7, It is characterized in that The test unit is specifically configured to perform: Determining a target preset interval including the output parameter from a plurality of preset intervals, wherein the plurality of preset intervals are determined according to granularities corresponding to the recommendation strategy; A simulated business type including the target preset interval is selected from a plurality of simulated business types corresponding to the recommendation strategy.
9. The strategy matching device according to claim 7, It is characterized in that The second determining unit is specifically configured to execute: If the simulated business type is the same as the actually recommended business type, it is determined that the sample used in this simulation test matches the recommended strategy; or If the simulated business type is different from the actually recommended business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is the same as the simulated business type.
10. The strategy matching device according to claim 8, It is characterized in that The second determining unit is specifically configured to execute: If the actually recommended service type is within the target preset interval included in the simulated service type, it is determined that the sample used in this simulation test matches the recommended strategy; or If the actually recommended business type is not within the target preset interval included in the simulated business type, at least one sample is selected from the historical sample set as a sample matching the recommendation strategy, wherein the actually recommended business type included in the selected sample is within the target preset interval included in the simulated business type.
11. The strategy matching device according to claim 7, It is characterized in that The third determining unit is specifically configured to execute: According to the business types recommended by the recommendation strategy, the samples matching the recommendation strategy are divided into multiple categories, wherein the samples in the same category contain the same actual recommended business types; Group samples of the same category that contain the same object attributes into one set; Determine, based on the object response information contained in the samples in the same set, a set corresponding to the business type recommended by the recommendation strategy from the sets obtained by dividing the samples in the same category; The object attributes included in the samples in the set are used as the object attributes corresponding to the business type recommended by the recommendation strategy.
12. The strategy matching device according to claim 7, It is characterized in that The test unit is also configured to perform: If the number of samples that have undergone simulation testing reaches a first preset value, the simulation testing is stopped; or If the number of samples matching the recommended strategy reaches a second preset value, the simulation test is stopped.
13. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the strategy matching method according to any one of claims 1 to 6.
14. A storage medium, It is characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the policy matching method according to any one of claims 1 to 6.
15. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the strategy matching method according to any one of claims 1 to 6 is implemented.
