Experiment grouping method and related equipment
By allocating randomly generated random seeds in the AB experiment, determining the target seeds based on the deviation of the diversion results, and configuring experimental groups, the problem of low credibility caused by a small number of experimental units was solved, and the homogeneity and credibility of the experiment were improved.
Patent Information
- Application Number
- CN202411328615.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing AB experiments, due to the small number of experimental units and small sample size, the groups are not homogeneous and the experimental results are less credible.
By allocating n randomly generated random seeds in the target experiment, the target random seeds are determined based on the indicator deviation of each group of diversion results, and the grouping of the preset experiment is configured based on the seeds to improve the homogeneity and credibility of the experiment.
By enriching the experimental sample size, reducing experimental contingency, and selecting the best-performing diversion strategy, the homogeneity between experimental groups is improved, thereby improving the credibility of the experimental results.
Smart Images

Figure CN118861584A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to an experimental grouping method and related equipment. Background Art
[0002] AB Testing is a randomized controlled trial method, which is mainly used to compare the effects of two versions (A and B) to determine which version is better.
[0003] However, in the existing AB experiments, some strategies are evaluated for segmented scenarios or with a coarse granularity of diversion. In these experiments, due to the small number of experimental units, that is, the small sample size, it is easy to have problems of heterogeneity between groups, resulting in poor credibility of experimental results. Summary of the invention
[0004] The main purpose of this application is to provide an experimental grouping method and related equipment, aiming to solve the technical problem of poor credibility of experimental results in existing AB experiments.
[0005] To achieve the above objectives, the present application provides an experimental grouping method, the method comprising: Determine experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; Assigning n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; According to the index deviation of each group of the n groups of the splitting results, determine that the random seed corresponding to the i-th group of the splitting results is the target random seed, the index deviation of the i-th group of the splitting results is the minimum index deviation among the index deviations corresponding to the n groups of the splitting results, and i is a positive integer less than or equal to n; The grouping of the predetermined experiment is configured based on the target random seed.
[0006] Optionally, the assigning of n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment includes: Generate n random seeds according to the random function; When the target experiment is assigned to the n random seeds, a diversion function is executed to obtain n groups of diversion results corresponding to the target experiment.
[0007] Optionally, the diversion function includes a hash function, the input of the hash function includes a stratification identifier, a diversion identifier and n random seed identifiers, each of the random seed identifiers corresponds to a random seed, the stratification identifier is used to indicate the creation of the stratification of the preset experiment and the target experiment, and the diversion identifier is used to indicate the experimental data of the target experiment.
[0008] Optionally, determining the random seed corresponding to the i-th group of splitting results as the target random seed according to the indicator deviation of each group of splitting results in the n groups of splitting results includes: Calculate the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, wherein the second index value is a standard index value used to measure homogeneity; Sorting the n indicator deviations, obtaining an i-th indicator deviation having a minimum value among the n indicator deviations, to determine the i-th group of diversion results corresponding to the i-th indicator deviation; The random seed corresponding to the i-th group of diversion results is determined as the target random seed.
[0009] Optionally, before calculating the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, the method further includes: The second indicator value is determined based on the backdated historical data.
[0010] Optionally, determining the experimental data of the target experiment according to the preset data of the preset experiment includes: Acquire preset data of the preset experiment, wherein the preset data includes an experiment audience and a grouping configuration; According to the preset data, experimental data of the target experiment matching the preset data is obtained in the database.
[0011] In addition, to achieve the above purpose, the present application also provides an experimental grouping device, the device comprising: A first determination module, used to determine experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; An allocation module is used to allocate n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; A second determination module is used to determine, according to the index deviation of each group of splitting results in the n groups of splitting results, that the random seed corresponding to the i-th group of splitting results is the target random seed, the index deviation of the i-th group of splitting results is the minimum index deviation among the index deviations corresponding to the n groups of splitting results, and i is a positive integer less than or equal to n; A configuration module is used to configure the grouping of the preset experiment based on the target random seed.
[0012] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution: The computer device includes a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the steps of any one of the experimental grouping methods proposed in the embodiments of the present application are implemented.
[0013] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of any one of the experimental grouping methods proposed in the embodiments of the present application are implemented.
[0014] In order to solve the above technical problems, the embodiment of the present application also provides a computer program product, which adopts the following technical solution: The computer program product includes computer instructions, which, when executed by a processor, implement the steps of any one of the experimental grouping methods proposed in the embodiments of the present application.
[0015] Compared with the prior art, the embodiments of the present application have the following beneficial effects: The present application provides an experiment grouping method and related equipment, the method comprising determining the experimental data of a target experiment according to preset data of a preset experiment, the preset experiment being an online experiment to be configured, and the target experiment being used to determine a target random seed corresponding to the preset experiment; assigning n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results being determined by a random seed, and n being a positive integer; determining the random seed corresponding to the i-th group of diversion results as the target random seed according to the indicator deviation of each group of diversion results in the n groups of diversion results, the indicator deviation of the i-th group of diversion results being the minimum indicator deviation among the indicator deviations corresponding to the n groups of diversion results, and i being a positive integer less than or equal to n; and configuring the grouping of the preset experiment based on the target random seed. In the embodiment of the present application, by simulating a preset experiment based on a target experiment and generating different diversion results according to different random seeds, the experimental sample size is enriched, which is conducive to selecting the best performing diversion strategy and reducing the randomness of the experiment; in this way, the diversion result with the smallest deviation value is determined among multiple groups of diversion results to determine the target random seed corresponding to the group; and then the random seed is applied to the preset experiment, thereby achieving the effect of ensuring the homogeneity between the preset experimental groups and improving the credibility of the experimental results. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is an exemplary system architecture diagram to which the present application may be applied; Figure 2 This is one of the flow charts of the experimental grouping method provided in the embodiments of the present application; Figure 3 This is the second flowchart of the experimental grouping method provided in the embodiment of the present application; Figure 4 is a schematic structural diagram of an embodiment of an experimental grouping device according to the present application; Figure 5 This is a basic structural block diagram of the computer device in this embodiment. DETAILED DESCRIPTION
[0018] The experimental grouping method provided in the embodiment of the present application is applied to the experimental grouping device. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" in the specification and claims of the present application and the above-mentioned drawings and any variations thereof are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0019] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0020] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0021] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0022] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social online platform software, etc.
[0023] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV), laptop computers, desktop computers, etc.
[0024] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0025] It should be noted that the experimental grouping method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the experimental grouping device is generally set in the server / terminal device.
[0026] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0027] Please refer to Figure 2 , shows one of the flow charts of an embodiment of the experimental grouping method proposed in the present application. The embodiment of the present application can acquire and process relevant data based on artificial intelligence technology.
[0028] It should be noted that the experimental grouping method provided in the present application can be applied to electronic devices, which obtain various parameters required in the AB experiment process and then generate test results that characterize the experimental effects based on these parameters.
[0029] Optionally, the experimental grouping method provided in this application can also be applied to the AB experimental platform.
[0030] The experimental grouping method provided in the embodiment of the present application may include the following steps: S210, determining experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; In this step, the preset experiment can be an online experiment to be deployed. For example, in a marketing campaign, different forms of coupons are distributed to old users. You can deploy a preset experiment to determine which coupon brings the best benefits. However, the homogeneity of different groups in the experiment is difficult to ensure, resulting in poor credibility of the experimental results. Based on this, before conducting the preset experiment, you can simulate the diversion of the online experiment (i.e., the preset experiment) based on the target experiment, and find in advance the random seed (i.e., the target random seed) that can optimize the homogeneity of the experimental group and the control group; then apply the random seed to the preset experiment, thereby achieving the effect of ensuring the homogeneity between the online experimental groups.
[0031] Among them, the experimental data of the target experiment is determined according to the preset data of the preset experiment, so that the audience of the target experiment is the same as the audience of the online experiment to be deployed, thereby facilitating the determination of the traffic under the same conditions.
[0032] S220, assigning n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; In this step, the n randomly generated random seeds can be recorded as: r1, r2...rn, and the n groups of diversion results can be recorded as: #1, #2...#n. Each group of diversion results includes the index values of the experimental group and the control group under the influence of the corresponding random seeds. For example, #1 includes the index values of the control group 1 and the experimental group 1 under the influence of r1, and #n includes the index values of the control group n and the experimental group n under the influence of rn. By introducing the randomly generated n random seeds, the experimental sample size is enriched, which facilitates the subsequent finding of groups with small experimental deviations.
[0033] Exemplarily, n may be 200. 200 groups can find random seeds with good homogeneity.
[0034] S230, according to the index deviation of each group of the n groups of the splitting results, determine that the random seed corresponding to the i-th group of the splitting results is the target random seed, the index deviation of the i-th group of the splitting results is the minimum index deviation among the index deviations corresponding to the n groups of the splitting results, and i is a positive integer less than or equal to n; In this step, the index deviation is calculated for each group of diversion results. The index deviation can be the difference between the homogeneity index and the expected value. The smaller the index deviation, the higher the homogeneity of the experimental group and the control group in the diversion results. Find the i-th group of diversion results with the smallest deviation value to determine the target random seed, that is, the random seed of the i-th group of diversion results is the target random seed, where i is the index that minimizes the deviation of the group. Determining the target random seed based on the target experiment is conducive to selecting the best performing diversion strategy, thereby improving the homogeneity of the experimental grouping.
[0035] S240: configuring groups of the preset experiment based on the target random seed.
[0036] Configuring the grouping of the preset experiment based on the target random seed can more effectively improve the homogeneity of the experimental grouping, thereby enhancing the reliability and effectiveness of the experiment.
[0037] The embodiment of the present application provides an experimental grouping method, including determining the experimental data of the target experiment according to the preset data of the preset experiment, the preset experiment is an online experiment to be configured, and the target experiment is used to determine the target random seed corresponding to the preset experiment; assigning n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed; according to the index deviation of each group of diversion results in the n groups of diversion results, determining the random seed corresponding to the i-th group of diversion results as the target random seed, the index deviation of the i-th group of diversion results is the minimum index deviation among the index deviations corresponding to the n groups of diversion results; configuring the grouping of the preset experiment based on the target random seed. In the embodiment of the present application, by simulating the preset experiment based on the target experiment and generating different diversion results according to different random seeds, the experimental sample size is enriched, which is conducive to selecting the best performing diversion strategy and reducing the contingency of the experiment; thus, the diversion result with the smallest deviation value is determined in the multi-group diversion results to determine the target random seed corresponding to the group; and then applying the random seed to the preset experiment, so as to achieve the effect of ensuring the homogeneity between the preset experimental groups and improve the credibility of the experimental effect.
[0038] The following specifically describes how to determine the experimental data of the target experiment based on the preset data of the preset experiment. The real online experiment in the production environment can be defined as the "preset experiment", and the experiment used to find the optimal random seed for the preset experiment can be defined as the "target experiment": Optionally, determining the experimental data of the target experiment according to the preset data of the preset experiment includes: Acquire preset data of the preset experiment, wherein the preset data includes an experiment audience and a grouping configuration; According to the preset data, experimental data of the target experiment matching the preset data is obtained in the database.
[0039] In this embodiment, the preset experiment and the target experiment are created in the same layer and can be marked by a layer identifier, i.e., a layer ID. That is, the layer ID of the preset experiment is the same as the layer ID of the target experiment to reduce the difference between the preset experiment and the target experiment.
[0040] For example, the characteristics of the target users, including age, gender, region, interests, etc., can be analyzed based on the user portrait of the product or service in the preset experiment; or, existing user data (such as historical purchase records, behavioral data, etc.) can be used to identify potential experimental audiences. If the audience has a clear hierarchy, it can be stratified by characteristics (such as gender, age group) to ensure that each group is balanced in important characteristics. After determining the experimental audience and group configuration of the preset experiment, the experimental data of the target experiment that matches the preset data can be obtained from the database based on the experimental audience and group configuration of the preset experiment, that is, the experimental audience and group configuration of the target experiment.
[0041] In this way, historical data is retrieved from the database according to the settings of the experimental audience to obtain experimental data similar to the preset experiment, or experimental samples, which can be recorded as diversion identifiers (diversion IDs). This reduces the difference between the preset experiment and the target experiment, improves the authenticity of the experimental data, and thus improves the authenticity of the online experiment simulated by the target experiment.
[0042] The following specifically describes how to assign randomly generated n random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment: Optionally, the assigning of n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment includes: Generate n random seeds according to the random function; When the target experiment is assigned to the n random seeds, a diversion function is executed to obtain n groups of diversion results corresponding to the target experiment.
[0043] In this embodiment, the AB experiment platform can generate n random seeds according to the random function to reduce the situation of single random results. The more random seeds there are, the more random grouping results there are, and the more likely it is to find a grouping with small experimental deviation. Then, the random seeds are assigned to the target experiment, and the diversion function is executed to obtain n groups of diversion results corresponding to the target experiment. In this way, different diversion results are generated according to different random seeds, which enriches the experimental sample size, is conducive to selecting the best performing diversion strategy, reduces the contingency of the experiment, and thus improves the credibility of the experimental effect.
[0044] Among them, optionally, the diversion function includes a hash function, the input of the hash function includes a layer identifier (layer ID), a diversion identifier (diversion ID) and n random seed identifiers, each of the random seed identifiers corresponds to a random seed, the layer identifier is used to indicate the creation of the layer of the preset experiment and the target experiment, and the diversion identifier is used to indicate the experimental data of the target experiment.
[0045] Exemplarily, the Hash function can convert data of any size into a fixed-size hash value (hash code) to ensure the consistency and uniqueness of the data. In the process of generating diversion results based on the Hash function, since the layer ID and diversion ID are consistent, only the random seeds are different, different random seeds can generate different diversion results. The AB experimental platform automatically assigns n random seeds (r1, r2...rn) to the target experiment, and after executing the diversion function, it obtains n groups of diversion results (#1, #2...#n) corresponding to the target experiment. The sample size of the experiment is enriched, which is conducive to selecting the best performing diversion strategy, reducing the randomness of the experiment, and thus improving the credibility of the experimental effect. Especially when there are resource constraints or restrictions, experiments can only be conducted on a small scale, and the sample size is limited, the experimental grouping method provided in this embodiment performs well.
[0046] The following specifically describes how to determine the random seed corresponding to the i-th group of split results as the target random seed according to the indicator deviation of each group of split results in the n groups of split results: Optionally, determining the random seed corresponding to the i-th group of splitting results as the target random seed according to the indicator deviation of each group of splitting results in the n groups of splitting results includes: Calculate the deviation between the first index value and the second index value of each group of the n groups of the diversion results to obtain n index deviations, wherein the second index value is a standard index value used to measure homogeneity; Sorting the n indicator deviations, obtaining an i-th indicator deviation having a minimum value among the n indicator deviations, to determine the i-th group of diversion results corresponding to the i-th indicator deviation; The random seed corresponding to the i-th group of diversion results is determined as the target random seed.
[0047] In this embodiment, the standard index value for measuring homogeneity, i.e., the second index value, is first determined; then the deviation between the first index value and the second index value of each group of diversion results in the n groups of diversion results is calculated to obtain n index deviations. The smaller the index deviation, the higher the homogeneity of the experimental group and the control group in the diversion results; the n index deviations are sorted to find the i-th group of diversion results with the smallest deviation value; the random seed corresponding to the i-th group of diversion results is determined as the target random seed. In this way, the diversion result with the smallest deviation value is determined in multiple groups of diversion results to determine the target random seed corresponding to the group, which is conducive to selecting the best performing diversion strategy, and then applying the target random seed to the preset experiment, thereby achieving the effect of ensuring the homogeneity between the preset experimental groups and improving the credibility of the experimental effect.
[0048] Optionally, before calculating the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, the method further includes: The second indicator value is determined based on the backdated historical data.
[0049] In this embodiment, historical relevant data is extracted from a database or data warehouse; duplicates, missing values, and outliers are removed to ensure the accuracy and credibility of the data, and to ensure that all data are consistent in format; then the mean, median, standard deviation, etc. in the historical data are calculated to obtain a preliminary understanding of the distribution of standard indicator values used to measure homogeneity. In one example, the average value of the historical data can be selected as the standard indicator value. In another example, if the data has a skewed distribution, the median can be selected as a more robust standard. In another example, for example, the 90th percentile can also be used to set homogeneity goals. It can solve the problem of being unable to measure homogeneity in different situations. By setting a standard indicator value that can measure homogeneity, the deviations between groups under different diversion results for the same indicator are compared. The group with the smallest deviation indicates the best homogeneity.
[0050] The present application embodiment provides an experimental grouping method, such as Figure 3 As shown, the experimental audience and group configuration of the preset experiment are determined, and n randomly generated random seeds are assigned to the target experiment to obtain n groups of diversion results corresponding to the target experiment. The n randomly generated random seeds can be recorded as: r1, r2...rn, and the n groups of diversion results can be recorded as: #1, #2...#n. Each group of diversion results includes the indicator values of the experimental group and the control group under the influence of the corresponding random seed. For example, #1 includes the indicator values of the control group 1 and the experimental group 1 under the influence of r1, and #n includes the indicator values of the control group n and the experimental group n under the influence of rn. By introducing the randomly generated n random seeds, the experimental sample size is enriched, which facilitates the subsequent finding of groups with small experimental deviations.
[0051] Then, the homogeneity of the n groups of diversion results is calculated, that is, the index deviation of each group of diversion results in the n groups of diversion results is calculated; in the process of finding the random seed corresponding to the group with the best homogeneity, that is, determining the target random seed corresponding to the i-th group of diversion results, the deviation between the first index value and the second index value of each group of diversion results in the n groups of diversion results can be calculated, and then the n index deviations are sorted to determine the i-th group of diversion results with the smallest index deviation. Among them, the second index value is a standard index value for measuring homogeneity, and the standard index value for measuring homogeneity can be determined by looking back at historical data. For example, if the start time of the experiment is set to September 17 and the end time of the experiment is set to September 30, the backtracking period can be from September 3 to September 17. By setting a standard index value that can measure homogeneity, comparing the deviation between groups under different diversion results of the same index, determining the diversion result with the smallest deviation value in multiple groups of diversion results, and determining the target random seed corresponding to the group; then applying the random seed to the preset experiment, the effect of ensuring the homogeneity between the groups of the preset experiment is achieved, and the credibility of the experimental effect is improved.
[0052] Further references Figure 4 , as a response to the above Figure 2 In order to realize the method shown in the figure, the present application provides an embodiment of an experiment grouping device 400. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0053] An experiment grouping device 400 provided in an embodiment of the present application includes: A first determination module 410 is used to determine experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; An allocation module 420 is used to allocate n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; A second determination module 430 is used to determine, based on the index deviation of each group of splitting results in the n groups of splitting results, that the random seed corresponding to the i-th group of splitting results is the target random seed, the index deviation of the i-th group of splitting results is the minimum index deviation among the index deviations corresponding to the n groups of splitting results, and i is a positive integer less than or equal to n; The configuration module 440 is used to configure the grouping of the preset experiment based on the target random seed.
[0054] Optionally, the allocation module 420 is specifically configured to: Generate n random seeds according to the random function; When the target experiment is assigned to the n random seeds, a diversion function is executed to obtain n groups of diversion results corresponding to the target experiment.
[0055] Optionally, the diversion function includes a hash function, the input of the hash function includes a stratification identifier, a diversion identifier and n random seed identifiers, each of the random seed identifiers corresponds to a random seed, the stratification identifier is used to indicate the creation of the stratification of the preset experiment and the target experiment, and the diversion identifier is used to indicate the experimental data of the target experiment.
[0056] Optionally, the second determining module 430 is specifically configured to: Calculate the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, wherein the second index value is a standard index value used to measure homogeneity; Sorting the n indicator deviations, obtaining an i-th indicator deviation having a minimum value among the n indicator deviations, to determine the i-th group of diversion results corresponding to the i-th indicator deviation; The random seed corresponding to the i-th group of diversion results is determined as the target random seed.
[0057] Optionally, the second determining module 430 is further configured to: The second indicator value is determined based on the backdated historical data.
[0058] Optionally, the first determining module 410 is specifically configured to: Acquire preset data of the preset experiment, wherein the preset data includes an experiment audience and a grouping configuration; According to the preset data, experimental data of the target experiment matching the preset data is obtained in the database.
[0059] To solve the above technical problems, the present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment. The computer device 5 includes a memory 51, a processor 52, and a network interface 53 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 5 with components 51-53, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0060] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0061] The memory 51 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 51 can be an internal storage unit of the computer device 5, such as a hard disk or memory of the computer device 5. In other embodiments, the memory 51 can also be an external storage device of the computer device 5, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the computer device 5. Of course, the memory 51 can also include both the internal storage unit of the computer device 5 and its external storage device. In this embodiment, the memory 51 is generally used to store the operating system and various application software installed on the computer device 5, such as the program code of the experimental grouping method, etc. In addition, the memory 51 can also be used to temporarily store various types of data that have been output or are to be output.
[0062] The processor 52 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 52 is generally used to control the overall operation of the computer device 5. In this embodiment, the processor 52 is used to run the program code stored in the memory 51 or process data, such as running the program code of the experimental grouping method.
[0063] The network interface 53 may include a wireless network interface or a wired network interface. The network interface 53 is generally used to establish a communication connection between the computer device 5 and other electronic devices.
[0064] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores the experimental grouping program, and the experimental grouping program can be executed by at least one processor so that the at least one processor performs the steps of the experimental grouping method as described above.
[0065] The present application also provides another implementation, namely, providing a computer program product, wherein the computer program product includes computer instructions, and when the computer instructions are executed by a processor, the steps of the above-mentioned experimental grouping method are implemented.
[0066] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware online platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0067] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0068] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. An experimental grouping method, It is characterized in that The method comprises: Determine experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; Assigning n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; According to the index deviation of each group of the n groups of the splitting results, determine that the random seed corresponding to the i-th group of the splitting results is the target random seed, the index deviation of the i-th group of the splitting results is the minimum index deviation among the index deviations corresponding to the n groups of the splitting results, and i is a positive integer less than or equal to n; The grouping of the predetermined experiment is configured based on the target random seed.
2. The method according to claim 1, It is characterized in that The step of allocating n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment includes: Generate n random seeds according to the random function; When the target experiment is assigned to the n random seeds, a diversion function is executed to obtain n groups of diversion results corresponding to the target experiment.
3. The method according to claim 2, It is characterized in that The diversion function includes a hash function, the input of the hash function includes a stratification identifier, a diversion identifier and n random seed identifiers, each of the random seed identifiers corresponds to a random seed, the stratification identifier is used to indicate the creation of the stratification of the preset experiment and the target experiment, and the diversion identifier is used to indicate the experimental data of the target experiment.
4. The method according to claim 1, It is characterized in that The step of determining, according to the index deviation of each group of the n groups of the splitting results, the random seed corresponding to the i-th group of the splitting results as the target random seed, includes: Calculate the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, wherein the second index value is a standard index value used to measure homogeneity; Sorting the n indicator deviations, obtaining an i-th indicator deviation having a minimum value among the n indicator deviations, to determine the i-th group of diversion results corresponding to the i-th indicator deviation; The random seed corresponding to the i-th group of diversion results is determined as the target random seed.
5. The method according to claim 4, It is characterized in that Before calculating the deviation between the first index value and the second index value of each group of the n groups of the splitting results to obtain n index deviations, the method further includes: The second indicator value is determined based on the backdated historical data.
6. The method according to claim 1, It is characterized in that Determining the experimental data of the target experiment according to the preset data of the preset experiment includes: Acquire preset data of the preset experiment, wherein the preset data includes an experiment audience and a grouping configuration; According to the preset data, experimental data of the target experiment matching the preset data is obtained in the database.
7. An experimental grouping device, It is characterized in that The device comprises: A first determination module, used to determine experimental data of a target experiment according to preset data of a preset experiment, wherein the preset experiment is an online experiment to be configured, and the target experiment is used to determine a target random seed corresponding to the preset experiment; An allocation module is used to allocate n randomly generated random seeds to the target experiment to obtain n groups of diversion results corresponding to the target experiment, each group of diversion results is determined by a random seed, and n is a positive integer; A second determination module is used to determine, according to the index deviation of each group of splitting results in the n groups of splitting results, that the random seed corresponding to the i-th group of splitting results is the target random seed, the index deviation of the i-th group of splitting results is the minimum index deviation among the index deviations corresponding to the n groups of splitting results, and i is a positive integer less than or equal to n; A configuration module is used to configure the grouping of the preset experiment based on the target random seed.
8. A computer device, It is characterized in that include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the experimental grouping method as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the experimental grouping method according to any one of claims 1 to 6 are implemented.
10. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of the experiment grouping method as described in any one of claims 1 to 6.
