AB experiment integration method and system
By configuring and transmitting offloading rules in the AB experiment platform, and using the offloading engine to perform client grouping calculations and experimental task allocation, the problems of unfriendly data collection and experimental impact in the existing technology are solved, and fast and distributed AB experiments are realized. The solution improves the real-time performance of data processing and the accuracy of results.
Patent Information
- Application Number
- CN202110156820.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-02-04
AI Technical Summary
The existing AB experiment platform is unfriendly in terms of data collection and access, resulting in low human efficiency and increased duplication of work, and the mutual influence of multi-layer and multi-group experiments affects the accuracy of data results.
By establishing communication between the central server and the local server, configuring and transmitting offloading rules, the offloading engine is used to perform group calculations and experimental task allocation on the client, and analyze and process experimental data in real time, supporting multi-dimensional information and multiple algorithms. Dynamic configuration, using multi-tree data structure and random salt to achieve multi-level grouping and real-time allocation of traffic proportions.
It realizes a fast and distributed AB experiment scheme, reduces the burden of centralized management of computing resources, improves the real-time performance of data reporting and analysis and processing, and ensures the accuracy of experimental results and the orthogonality of multiple groups of experiments.
Smart Images

Figure CN112817856B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an AB experiment integration method, system, electronic device and computer-readable storage medium. Background Art
[0002] AB experiment is a random experiment, usually with two variants (Group A and Group B). Under the premise of maintaining a single variable, the data of Group A and Group B are compared by using the control variable method to draw experimental conclusions. This experimental method is widely used in product optimization in Internet products.
[0003] Modern Internet products cannot quickly decide on the correctness of a function and the optimal solution under the huge user base, so a fast and effective AB experiment plan plays a vital role in the optimization of the entire product. From the distribution algorithm strategy of the content to the user differences caused by the change of the color of a button and the text, all can be verified by the data after the AB experiment. Generally, two plans are formulated for the same optimization goal, so that some users in the same user group hit plan A, and another part of the users hit plan B. The click-through rate, conversion rate and other data indicators of different plans are counted and compared. Through the data performance of different plans, the final plan is decided after confirming that the data performance passes the hypothesis test.
[0004] However, most of the existing AB experiment platforms of major Internet companies encounter problems with data collection and unfriendly access parties. Therefore, they often use the method of online configuration experiments and offline data calculation to conduct corresponding AB experiments. The problems brought about by this are low efficiency and a lot of duplication of work. In addition, the mutual influence of multiple layers and groups of experiments that may be encountered during the experiment will affect the final data results, resulting in inaccurate judgments.
[0005] It should be noted that the above content is not intended to limit the scope of protection applied for. Summary of the invention
[0006] The main purpose of this application is to propose an AB experiment integration method, system, electronic device and computer-readable storage medium, aiming to solve at least one of the above-mentioned problems.
[0007] To achieve the above purpose, an embodiment of the present application provides an AB experiment integration method, which is applied to a central server, wherein the central server is communicatively connected with one or more local servers, and the method includes:
[0008] Configure the diversion rules of the AB experiment;
[0009] Transmitting the configured traffic diversion rules to the local server, so that the traffic diversion engine of the local server performs group calculations on the connected multiple clients according to the traffic diversion rules and assigns corresponding experimental tasks to the clients in each group;
[0010] receiving the grouping information obtained according to the grouping calculation and the experimental data of the client reported by the local server; and
[0011] Real-time analysis and processing are performed based on the grouping information and the experimental data and displayed to the user for viewing.
[0012] Optionally, the configuration of the diversion rules is implemented through a grammatical decision tree, which supports dynamic configuration according to multi-dimensional information and multiple algorithms.
[0013] Optionally, the configuration of the diversion rule of the AB experiment includes:
[0014] Multi-level grouping experiments are configured through a multi-tree data structure, and orthogonality of the same client in different experiments is achieved by adding random salts to the diversion rules.
[0015] Optionally, the configuring of the diversion rule of the AB experiment further includes:
[0016] The traffic proportion is adjusted in real time during the running of the AB experiment.
[0017] In addition, to achieve the above-mentioned purpose, the embodiment of the present application further provides an AB experiment integration system, which is applied to a central server, and the system includes:
[0018] A configuration module, used to configure the diversion rules of the AB experiment;
[0019] A transmission module, used for transmitting the configured diversion rule to the local server, so that the diversion engine of the local server performs group calculation on the multiple connected clients according to the diversion rule and allocates corresponding experimental tasks to the clients in each group;
[0020] A receiving module, used for receiving the grouping information calculated according to the grouping and the experimental data of the client reported by the local server;
[0021] The display module is used to perform real-time analysis and processing based on the grouping information and the experimental data and display them to the user for viewing.
[0022] To achieve the above purpose, the embodiment of the present application further provides an AB experiment integration method, which is applied to a local server, and the method includes:
[0023] Regularly obtain the traffic diversion rules of the AB experiment from the central server, and update the local traffic diversion engine according to the traffic diversion rules;
[0024] The traffic distribution engine performs grouping calculation on multiple clients connected to the local server according to the traffic distribution rule, and reports grouping information to the central server;
[0025] Allocating experimental tasks to the client according to the result of the group calculation; and
[0026] Acquire experimental data from the client and report the experimental data to the central server.
[0027] Optionally, updating the local diversion engine according to the diversion rule includes:
[0028] Determine whether there is a grammatical error in the diversion rule;
[0029] If there is a grammatical error, the diversion rule will not take effect, and the last correct diversion rule will be used;
[0030] If there is no syntax error, the diversion engine is updated according to the diversion rule.
[0031] Optionally, performing grouping calculation on multiple clients connected to the local server according to the diversion rule includes:
[0032] The grouping and calculating of the multiple clients connected to the local server according to the diversion rule includes:
[0033] The basic information corresponding to each of the clients is obtained, and the group to which the client belongs is calculated according to the grammatical description in the diversion rule and the basic information.
[0034] Optionally, performing grouping calculation on multiple clients connected to the local server according to the diversion rule further includes:
[0035] For the multi-level grouping experiment configured by the multi-tree data structure, the depth-first traversal algorithm is used to traverse the child nodes of the multi-tree first. If the conditions of the child node are not met, it is traced back to the parent node of the child node, and so on to find the group to which the client belongs.
[0036] To achieve the above purpose, the embodiment of the present application further provides an AB experiment integration system, which is applied to a local server, and the system includes:
[0037] An acquisition module, used to periodically acquire the traffic diversion rules of the AB experiment from a central server, and update a local traffic diversion engine according to the traffic diversion rules;
[0038] A calculation module, used for the traffic distribution engine to perform group calculation on multiple clients connected to the local server according to the traffic distribution rule, and report group information to the central server;
[0039] An allocation module, used for allocating experimental tasks to the client according to the result of the group calculation;
[0040] The reporting module is used to obtain experimental data from the client and report the experimental data to the central server.
[0041] To achieve the above-mentioned purpose, an embodiment of the present application also provides an electronic device, which includes: a memory, a processor, and an AB experiment integration program stored in the memory and executable on the processor, and when the AB experiment integration program is executed by the processor, the AB experiment integration method as described above is implemented.
[0042] To achieve the above objectives, an embodiment of the present application further provides a computer-readable storage medium, on which an AB experiment integration program is stored. When the AB experiment integration program is executed by a processor, the AB experiment integration method as described above is implemented.
[0043] The AB experiment integration method, system, electronic device and computer-readable storage medium proposed in the embodiments of the present application can provide a fast and distributed AB experiment solution, use the access of a distributed computing engine to distribute the management of computing resources, and also integrate real-time data reporting and analysis and processing, so that the diversion of the AB experiment and the experimental data effect can be viewed in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 An application environment architecture diagram for implementing various embodiments of the present application;
[0045] Figure 2 A flowchart of an AB experiment integration method proposed in the first embodiment of the present application;
[0046] Figure 3 This is a schematic diagram of an optional rule configuration page in this application;
[0047] Figure 4 A schematic diagram of traversing a multi-branch tree during an optional group calculation in the present application;
[0048] Figure 5 A flowchart of an AB experiment integration method proposed in the second embodiment of the present application;
[0049] Figure 6 A schematic diagram of the hardware architecture of an electronic device proposed in the third embodiment of the present application;
[0050] Figure 7 A schematic diagram of a module of an AB experiment integration system proposed in the fourth embodiment of the present application;
[0051] Figure 8 This is a module schematic diagram of an AB experiment integration system proposed in the fifth embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0053] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0054] See also Figure 1 , Figure 1 The present invention is applicable to an application environment architecture diagram for implementing various embodiments of the present invention. The present invention can be applied to an application environment including, but not limited to, a central server 2, a local server 4, and a client 6.
[0055] The central server 2 is used for AB experiment configuration and unified management. The central server 2 is connected to one or more local servers 4 through a network for data transmission and interaction.
[0056] The local server 4 is used to periodically obtain the AB experiment configuration from the central server 2, and update the local diversion engine according to the AN experiment configuration. Each local server 4 is connected to one or more clients 6 through a network for data transmission and interaction. The local server 4 is also used to obtain the grouping information of each local client 6 according to the calculation results of the local diversion engine, assign experimental tasks to each client 6, and report the grouping information and experimental data obtained from each client 6 to the central server 2.
[0057] The client 6 is used to perform the experiment of the group and obtain the experimental data according to the experimental task assigned by the local server 4. The client 2 can be a terminal device such as a PC (Personal Computer), a mobile phone, a tablet computer, a portable computer, a wearable device, etc.
[0058] The central server 2 and the local server 4 may be computing devices such as rack servers, blade servers, tower servers or cabinet servers, and may be independent servers or server clusters composed of multiple servers.
[0059] The network may be a wireless or wired network such as an intranet, the Internet, a global system of mobile communications (GSM), a wideband code division multiple access (WCDMA), a 4G network, a 5G network, Bluetooth, or Wi-Fi.
[0060] Embodiment 1
[0061] like Figure 2 As shown, it is a flowchart of an AB experiment integration method proposed in the first embodiment of the present application. It can be understood that the flowchart in the embodiment of the present method is not used to limit the order of executing the steps. As needed, some steps in the flowchart can also be added or deleted. The following is an exemplary description using the central server 2 as the execution subject.
[0062] The method comprises the following steps:
[0063] S200, configuring the diversion rules of the AB experiment.
[0064] The main function of the AB experiment is to implement grayscale experiments on the strategies and styles of Internet products. In this embodiment, the central server 2 mainly provides the rule configuration and unified management of the AB experiment, and through the service integration AB experiment SDK (software development kit, in this embodiment, including a collection of relevant documents, examples and tools to assist in the development of a certain type of software), the rule parsing function is distributed in the diversion engine inside each local server 4 to run, dispersing the consumption of computing performance to each local server 4.
[0065] First, a rule configuration page is provided on the central server 2, and the rule configuration page supports the configuration of diversion rules according to multi-dimensional information such as user ID, device ID, platform information, version number, etc. At the same time, in order to prevent multiple AB experiments from affecting each other, common Hash diversion is supported. In this embodiment, when creating an AB experiment, it is necessary to specify diversion rules such as experimental objectives, diversion strategies, control groups and experimental groups, and the proportion of out-of-group traffic. In addition, the diversion rules can be customized to describe the AST (syntactic decision tree) syntax (the actual traffic proportion of each group can be customized and can be subdivided into out-of-group traffic and in-group traffic). The syntax supports black and white list functions and multiple algorithms such as value selection, logical operations, and hash operations, and can dynamically and randomly combine various algorithms.
[0066] For example, see Figure 3 As shown, it is a schematic diagram of an optional rule configuration page in an embodiment of the present application. The rule configuration page can be configured to divide 20% of the traffic from all users, and use it as the experimental group and control group to perform the AB experiment. The specific diversion method is: add a random string (for example, "sIfXwxr") to the user ID (uid) number and perform a CRC32 hash operation, and then take the modulus by 10. If the modulus result is less than or equal to 1, the condition is met. Through this diversion method, 20% of the traffic (the user ID suffix is 0 or 1) can be taken from all users after the hash operation to perform the AB experiment. Then, "randomly take 10% from the above 20% traffic (the above modulus result is equal to 0, that is, the user ID suffix is 0) as the control group for Group A experiment; randomly take another 10% from the above 20% traffic (the above modulus result is equal to 1, that is, the user ID suffix is 1) as the experimental group for Group B experiment.
[0067] In addition to supporting customized grouping, this embodiment can also adjust the traffic ratio in real time during the experiment. The adjustment of traffic ratio refers to the introduction of more experimental samples from the traffic outside the group, but the diversion method and string group are not allowed to be changed in the middle of an AB experiment. For example, 20% of the traffic is cut from all users to do an AB experiment, and only more traffic is allowed to be cut from the traffic outside the group (80%) to enter the experiment, increasing the traffic participating in the experiment from the original 20% to 40%. Not allowing the diversion method to be changed means that the same user is not allowed to change to other groups in the middle of the experiment, otherwise it will affect the experimental data. For example, suppose a user was originally in the experimental group (Group A), and was not allowed to change to the control group (Group B) or move outside the experiment in the middle of the experiment. After the traffic ratio is adjusted in the rule configuration page, the local server 4 obtains the new diversion rule, and the diversion update of all servers can be realized.
[0068] In addition, the rule configuration page also supports multi-level grouping experiments, and theoretically supports unlimited levels of grouping. In order to achieve multi-level grouping, a multi-tree data structure is used in this embodiment. For example, first configure Group A (10%) and Group B (10%) of the first-level experiment (20% of the traffic), and Group B can be subdivided into Group C (5%) and Group D (5%) for the second-level experiment. Group C can also be subdivided into Group E (4%) and Group F (1%) for the third-level experiment. By analogy, unlimited levels of traffic segmentation can be achieved.
[0069] For multi-level group experiments, these experiments can be run on different independent layers. In this way, each experiment can enjoy all user traffic alone, and each user (client 6) can also participate in multiple experiments at different layers at the same time, and cross-acquire experimental versions of different layers, so as to efficiently conduct the AB experiment. However, there is a prerequisite for using this experimental method: the experiments at different layers are independent and do not interfere with each other in product logic. Assuming that the first experiment and the second experiment interfere with each other logically, but run on different layers, then a user may participate in both the first experiment and the second experiment at the same time, which may cause contradictions or unexpected results. For example, the first experiment is participated by client 6 with a user ID ending in 1, and the second experiment is participated by client 6 with a user ID ending in 11. Then client 6 with a user ID ending in 11 needs to participate in both the first experiment and the second experiment. The mutual interference between the first experiment and the second experiment may cause experimental data pollution and affect the experimental results.
[0070] In order to avoid mutual interference between multiple groups of experiments conducted simultaneously, this embodiment adds random salt when grouping. Different experiments use random salts generated by the system, and different random salts are used to achieve orthogonality of the same user (device) in different experiments. In cryptography, by inserting a specific string of characters at any fixed position in the password, the hashed result is made inconsistent with the hashed result of the original password. This process is called "salting", and the specific string of characters added is called "random salt". For example, in the above-mentioned specific diversion method, a random string of characters is added to the digits of the user ID, and the random string of characters is the random salt added when grouping the AB experiment.
[0071] S202, transmitting the configured diversion rule to the local server 4, so that the diversion engine of the local server 4 performs group calculation according to the diversion rule and allocates corresponding experimental tasks to the clients 6 of each group.
[0072] In this embodiment, all the local servers 4 can integrate the SDK of the AB experiment, and the local server 4 has an internal diversion engine integrated therein (the computing resources for diversion are distributed within each local server 4, rather than being processed centrally in the central server 2), and the local server 4 periodically obtains the diversion rules from the central server 2. The central server 2 transmits the diversion rules of the AB experiment configured in the rule configuration page to each of the local servers 4. The local server 4 updates the diversion engine according to the obtained diversion rules. In the local server 4, all diversion algorithms have no network requests and are implemented through local CPU calculations. The advantages of the above processing method are: the computing resources are distributed as much as possible in each business party (local server 4), the central server 2 only performs centralized management of the rules, all rules can be completed only through the configuration of the rule configuration page, and the computing resources required by the central server 2 will not increase with the increase of the AB experiment business parties.
[0073] The diversion engine of the local server 4 performs group calculation for the clients 6 connected thereto according to the diversion rules and assigns corresponding experimental tasks to the clients 6 in each group. For example, the local server 4 can obtain the user ID corresponding to each of the clients 6, and calculate the group to which the user ID belongs according to the syntax in the diversion rules. For example, the client 6 whose user ID ends with 0 belongs to the experimental group (Group A), and the client 6 whose user ID ends with 1 belongs to the control group (Group B). After completing the above-mentioned group calculation, the local server 4 reports the group information to the central server 2. The group information includes the basic information of each client 6 connected to the local server 4 (such as user ID, device ID, etc.) and the group to which it belongs (such as Group A, Group B), etc.
[0074] For multi-level grouping experiments, a multi-layer multi-branch tree data structure is used in the diversion rules. At this time, the diversion engine mainly looks for nodes that match each client 6 in the multi-branch tree. After receiving the request from the client 6 (that is, after obtaining the user ID and other information of the client 6), the local server 4 can use the depth-first traversal algorithm in the computer data structure to traverse the child nodes of the multi-branch tree first. If it does not match, it traces back to its parent node, and so on to find the experimental group to which the client 6 belongs. Among them, it is prioritized to determine whether the client 6 meets the diversion method of the AB experiment, and which group (Group A, Group B) of the AB experiment it belongs to. If it does not meet the requirements, it returns to the default group. For example, refer to Figure 4 As shown, it is a schematic diagram of traversing a multi-branch tree during an optional group calculation in an embodiment of the present application.
[0075] It is worth noting that the traffic diversion engine in this embodiment also supports fault-tolerant processing. A traffic diversion rule with a grammatical error will not take effect immediately after configuration, but will continue to use the last correct configuration.
[0076] After performing group calculations, the local server 4 allocates the experimental tasks of the corresponding group to each corresponding client 6 , obtains experimental data from the client 6 in real time, and then reports the experimental data to the central server 2 .
[0077] S204, receiving the grouping information and experimental data reported by the local server 4.
[0078] The central server 2 can receive the grouping information and the experimental data reported by the local server 4 (of the client 6 connected to the local server 4). The grouping information and the experimental data can be reported in a preset specified format so that the central server can quickly analyze and process them.
[0079] S206: Perform real-time analysis and processing based on the grouping information and the experimental data and display them to the user for viewing.
[0080] For a group of AB experiments or multiple groups of AB experiments that exist simultaneously, the central server 2 can perform real-time analysis and processing based on the grouping information and the experimental data, so that users can view the diversion situation and experimental data effects in real time (data updates can be achieved at the minute level). The experimental data effects include business indicators entered in advance, which are subdivided into indicator dimensions and specific data indicators. The indicator dimensions can be understood as a general term for a group of data indicators. For example, the click-through rate is an indicator dimension, which includes exposure data, click data, etc.
[0081] The AB experiment integration method proposed in this embodiment can provide a fast and distributed AB experiment solution, use AST syntax to achieve dynamic real-time diversion, realize the function of multi-level grouping through the multi-tree data structure and random salt, and use the access of distributed computing engine to distribute the computing resources. It also integrates real-time data reporting and analysis processing, and can view the diversion situation and experimental data effect of AB experiment in real time.
[0082] This embodiment supports multi-dimensional diversion methods such as user ID, device ID, platform, version, etc., and the algorithm level supports diversion calculation methods such as value selection, logical operation, and hash operation. Traffic stratification supports multi-layer diversion, and groups can be nested in groups. In theory, it can support unlimited layers of diversion. Multiple groups of experiments at multiple levels can be orthogonal to each other, so that multiple AB experiments in multiple dimensions can be carried out simultaneously without interfering with the experimental results. Changes to experimental diversion rules can take effect in real time, and dynamically expand and shrink diversion.
[0083] Embodiment 2
[0084] like Figure 5 As shown, it is a flow chart of an AB experiment integration method proposed in the second embodiment of the present application. It can be understood that the flow chart in the embodiment of the present method is not used to limit the order of executing the steps. As needed, some steps in the flow chart can also be added or deleted. The following is an exemplary description using the local server 4 as the execution subject.
[0085] The method comprises the following steps:
[0086] S300, regularly obtaining the diversion rules of the AB experiment from the central server 2, and updating the diversion engine according to the diversion rules.
[0087] The main function of the AB experiment is to implement grayscale experiments on the strategies and styles of Internet products. In this embodiment, the central server 2 mainly provides the rule configuration and unified management of the AB experiment, and the rule parsing function is distributed in the diversion engine inside each local server 4 through the service integration AB experiment SDK, distributing the consumption of computing performance to each local server 4.
[0088] First, a rule configuration page is provided on the central server 2, and the rule configuration page supports the configuration of diversion rules according to data such as user ID, device ID, platform information, version number, etc. At the same time, in order to prevent multiple AB experiments from affecting each other, common hash diversion is supported. In this embodiment, when creating an AB experiment, it is necessary to specify diversion rules such as experimental objectives, diversion strategies, control groups and experimental groups, and the proportion of out-of-group traffic. In addition, the diversion rules can be customized using AST syntax, which supports black and white list functions and multiple algorithms such as value selection, logical operations, and hash operations, and can dynamically and randomly combine various algorithms.
[0089] For example, the rule configuration page can be used to configure 20% of the traffic from all users to be used as the experimental group and control group for the AB experiment. The diversion method is specifically: add a random string (such as "sIfXwxr") to the user ID (uid) number and perform a CRC32 hash operation, then take the modulus by 10, and if the modulus result is less than or equal to 1, the condition is met. Through this diversion method, 20% of the traffic (the user ID suffix is 0 or 1) can be taken from all users after the hash operation to perform the AB experiment. Then, 10% (the above modulus result is equal to 0, that is, the user ID suffix is 0) is randomly taken from the above 20% traffic as the control group for the A group experiment, and another 10% (the above modulus result is equal to 1, that is, the user ID suffix is 1) is randomly taken from the above 20% traffic as the experimental group for the B group experiment.
[0090] In addition to supporting customized grouping, this embodiment can also adjust the traffic ratio in real time during the experiment. The adjustment of traffic ratio refers to the introduction of more experimental samples from the traffic outside the group, but the diversion method and string group are not allowed to be changed in the middle of an AB experiment. For example, 20% of the traffic is cut from all users to do an AB experiment, and only more traffic is allowed to be cut from the traffic outside the group (80%) to enter the experiment, increasing the traffic participating in the experiment from the original 20% to 40%. Not allowing the diversion method to be changed means that the same user is not allowed to change to other groups in the middle of the experiment, otherwise it will affect the experimental data. For example, suppose a user was originally in the experimental group (Group A), and was not allowed to change to the control group (Group B) or move outside the experiment in the middle of the experiment. After the traffic ratio is adjusted in the rule configuration page, the local server 4 obtains the new diversion rule, and the diversion update of all servers can be realized.
[0091] In addition, the rule configuration page also supports multi-level grouping experiments, and theoretically supports unlimited levels of grouping. In order to achieve multi-level grouping, a multi-tree data structure is used in this embodiment. For example, first configure Group A (10%) and Group B (10%) of the first-level experiment (20% of the traffic), and Group B can be subdivided into Group C (5%) and Group D (5%) for the second-level experiment. Group C can also be subdivided into Group E (4%) and Group F (1%) for the third-level experiment. By analogy, unlimited levels of traffic segmentation can be achieved.
[0092] For multi-level group experiments, these experiments can be run on different independent layers. In this way, each experiment can enjoy all user traffic alone, and each user (client 6) can also participate in multiple experiments at different layers at the same time, and cross-acquire experimental versions of different layers, so as to efficiently conduct the AB experiment. However, there is a prerequisite for using this experimental method: the experiments at different layers are independent and do not interfere with each other in product logic. Assuming that the first experiment and the second experiment interfere with each other logically, but run on different layers, then a user may participate in both the first experiment and the second experiment at the same time, which may cause contradictions or unexpected results. For example, the first experiment is participated by client 6 with a user ID ending in 1, and the second experiment is participated by client 6 with a user ID ending in 11. Then client 6 with a user ID ending in 11 needs to participate in both the first experiment and the second experiment. The mutual interference between the first experiment and the second experiment may cause experimental data pollution and affect the experimental results.
[0093] In order to avoid mutual interference between multiple groups of experiments conducted simultaneously, this embodiment adds random salt when grouping. Different experiments use random salts generated by the system, and different random salts are used to achieve orthogonality of the same user (device) in different experiments. In cryptography, by inserting a specific string of characters at any fixed position in the password, the hashed result is made inconsistent with the hashed result of the original password. This process is called "salting", and the specific string of characters added is called "random salt". For example, in the above-mentioned specific diversion method, a random string of characters is added to the digits of the user ID, and the random string of characters is the random salt added when grouping the AB experiment.
[0094] In this embodiment, all the local servers 4 can integrate the SDK of the AB experiment, and the local server 4 has an internal diversion engine integrated therein (the computing resources for diversion are distributed within each local server 4, rather than being processed centrally in the central server 2), and the local server 4 periodically obtains the diversion rules from the central server 2. The central server 2 transmits the diversion rules of the AB experiment configured in the rule configuration page to each of the local servers 4. The local server 4 updates the diversion engine according to the obtained diversion rules. In the local server 4, all diversion algorithms have no network requests and are implemented through local CPU calculations. The advantages of the above processing method are: the computing resources are distributed as much as possible in each business party (local server 4), the central server 2 only performs centralized management of the rules, all rules can be completed only through the configuration of the rule configuration page, and the computing resources required by the central server 2 will not increase with the increase of the AB experiment business parties.
[0095] It is worth noting that the diversion engine in this embodiment also supports fault-tolerant processing. The diversion rules with grammatical errors will not take effect immediately after configuration, but will continue to use the last correct configuration. That is to say, after obtaining the diversion rules, the diversion engine first determines whether there are grammatical errors in the diversion rules. If there are grammatical errors, the diversion rules will not take effect, and the last correct diversion rules will be used. If there are no grammatical errors, the diversion engine will be updated according to the diversion rules.
[0096] S302 , the traffic distribution engine performs grouping calculation on the client terminals 6 connected to the local server 4 according to the traffic distribution rule, and reports grouping information to the central server 2 .
[0097] The diversion engine of the local server 4 performs group calculation for the client 6 connected thereto according to the diversion rule. The diversion engine obtains the basic information corresponding to each of the client 6, and calculates the group to which the client 6 belongs according to the grammatical description in the diversion rule and the basic information. For example, the local server 4 can obtain the user ID corresponding to each of the client 6, and calculate the group to which the user ID belongs according to the grammatical description in the diversion rule. For example, the client 6 with a user ID ending in 0 belongs to the experimental group (Group A), and the client 6 with a user ID ending in 1 belongs to the control group (Group B). After completing the above group calculation, the local server 4 reports the group information to the central server 2. The group information includes the basic information (such as user ID, device ID, etc.) of each client 6 connected to the local server 4 and the group to which it belongs (such as Group A, Group B), etc. The group information can be reported in a preset specified format so that the central server can quickly analyze and process it.
[0098] For multi-level grouping experiments, a multi-layer multi-branch tree data structure is used in the diversion rules. At this time, the diversion engine mainly looks for nodes that match each client 6 in the multi-branch tree. After receiving the request from the client 6 (i.e., after obtaining the user ID and other information of the client 6), the local server 4 can use the depth-first traversal algorithm in the computer data structure to traverse the child nodes of the multi-branch tree first. If it does not meet the requirements, it will go back to its parent node, and so on to find the experimental group to which the client 6 belongs. Among them, it is first determined whether the client 6 meets the diversion method of the AB experiment, and which group (Group A, Group B) of the AB experiment it belongs to. If it does not meet the requirements, it will return to the default group.
[0099] S304: Allocate an experimental task to the client 6 according to the result of the group calculation.
[0100] After performing group calculation, the local server 4 will assign the experimental task of the corresponding group to each corresponding client 6. The experimental task mainly provides the strategy or style of the Internet product corresponding to the group to the client 6 of each group, so that the user of the client 6 can participate in the product experience of the group and provide experimental data.
[0101] S306 , obtaining experimental data from the client 6 and reporting the experimental data to the central server 2 .
[0102] The local server 4 can obtain experimental data from the connected client 6 in real time, and then report the experimental data to the central server 2. The experimental data can be reported in a preset specified format so that the central server can quickly analyze and process it.
[0103] After the central server 2 receives the grouping information and the experimental data reported by the local server 4, it can perform real-time analysis and processing based on the grouping information and the experimental data for a group of AB experiments or multiple groups of AB experiments that exist simultaneously, so that users can view the diversion situation and experimental data effects in real time (data updates can be achieved at the minute level). The experimental data effects include business indicators entered in advance, which are subdivided into indicator dimensions and specific data indicators. The indicator dimensions can be understood as a general term for a group of data indicators. For example, the click-through rate is an indicator dimension, which includes exposure data, click data, etc.
[0104] The AB experiment integration method proposed in this embodiment can provide a fast and distributed AB experiment solution, use AST syntax to achieve dynamic real-time diversion, realize the function of multi-level grouping through the multi-tree data structure and random salt, and use the access of distributed computing engine to distribute the computing resources. It also integrates real-time data reporting and analysis processing, and can view the diversion situation and experimental data effect of AB experiment in real time.
[0105] Each local server 4 integrates the AB experiment's traffic diversion engine for independent calculations, rather than centralized processing. In theory, multiple nodes can be expanded horizontally, and the increase in the number of nodes will not bring a burden to the system. In addition, the centralized management of rules requires only a small amount of resources, and the unexpected downtime of the central server 2 will not affect the various connected business parties. The diversion engine will not automatically take effect if it finds an incorrect rule description, and will retain the last correct rule.
[0106] Embodiment 3
[0107] like Figure 6 FIG. 2 is a schematic diagram of the hardware architecture of an electronic device 20 according to the third embodiment of the present application. In this embodiment, the electronic device 20 may include, but is not limited to, a memory 21, a processor 22, and a network interface 23 that can be interconnected via a system bus. It should be noted that Figure 6 Only an electronic device 20 having components 21-23 is shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead. In this embodiment, the electronic device 20 may be the central server 2 or the local server 4.
[0108] The memory 21 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 21 can be an internal storage unit of the electronic device 20, such as a hard disk or memory of the electronic device 20. In other embodiments, the memory 21 can also be an external storage device of the electronic device 20, such as a plug-in hard disk equipped on the electronic device 20, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 21 can also include both the internal storage unit of the electronic device 20 and its external storage device. In this embodiment, the memory 21 is generally used to store the operating system and various application software installed in the electronic device 20, such as the program code of the AB experiment integrated system 60, etc. In addition, the memory 21 can also be used to temporarily store various types of data that have been output or are to be output.
[0109] The processor 22 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor 22 is generally used to control the overall operation of the electronic device 20. In this embodiment, the processor 22 is used to run the program code stored in the memory 21 or process data, such as running the AB experiment integrated system 60.
[0110] The network interface 23 may include a wireless network interface or a wired network interface. The network interface 23 is generally used to establish a communication connection between the electronic device 20 and other electronic devices.
[0111] When the program stored in the memory 21 of the electronic device 20 is executed by the processor 22, the AB experiment integration method described in the first embodiment or the second embodiment can be implemented.
[0112] Embodiment 4
[0113] like Figure 7As shown, a module schematic diagram of an AB experiment integration system 60 is proposed for the fourth embodiment of the present application. The AB experiment integration system 60 can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module of this embodiment.
[0114] In this embodiment, the B experiment integration system 60 runs in the central server 2, and the AB experiment integration system 60 includes:
[0115] The configuration module 600 is used to configure the diversion rules of the AB experiment.
[0116] The main function of the AB experiment is to implement grayscale experiments on the strategies and styles of Internet products. In this embodiment, the central server 2 mainly provides the rule configuration and unified management of the AB experiment, and the rule parsing function is distributed in the diversion engine inside each local server 4 through the service integration AB experiment SDK, distributing the consumption of computing performance to each local server 4.
[0117] First, the configuration module 600 provides a rule configuration page, which supports the configuration of diversion rules according to multi-dimensional information such as user ID, device ID, platform information, version number, etc. At the same time, in order to prevent multiple AB experiments from affecting each other, common hash diversion is supported. In this embodiment, when creating an AB experiment, it is necessary to specify diversion rules such as experimental objectives, diversion strategies, control groups and experimental groups, and the proportion of out-of-group traffic. In addition, the diversion rules can be customized using AST syntax (the actual traffic proportion of each group can be customized and can be subdivided into out-of-group traffic and in-group traffic). The syntax supports black and white list functions and multiple algorithms such as value selection, logical operations, and hash operations, and can dynamically and randomly combine various algorithms.
[0118] For example, the rule configuration page can be used to configure 20% of the traffic from all users to be used as the experimental group and control group for the AB experiment. The diversion method is specifically: add a random string (such as "sIfXwxr") to the user ID (uid) number and perform a CRC32 hash operation, then take the modulus by 10. If the modulus result is less than or equal to 1, the condition is met. Through this diversion method, 20% of the traffic (the user ID suffix is 0 or 1) can be taken from all users after the hash operation to perform the AB experiment. Then, 10% (the above modulus result is equal to 0, that is, the user ID suffix is 0) is randomly taken from the above 20% traffic as the control group for Group A experiment; another 10% (the above modulus result is equal to 1, that is, the user ID suffix is 1) is randomly taken from the above 20% traffic as the experimental group for Group B experiment.
[0119] In addition to supporting customized grouping, this embodiment can also adjust the traffic ratio in real time during the experiment. The adjustment of traffic ratio refers to the introduction of more experimental samples from the traffic outside the group, but the diversion method and string group are not allowed to be changed in the middle of an AB experiment. For example, 20% of the traffic is cut from all users to do an AB experiment, and only more traffic is allowed to be cut from the traffic outside the group (80%) to enter the experiment, increasing the traffic participating in the experiment from the original 20% to 40%. Not allowing the diversion method to be changed means that the same user is not allowed to change to other groups in the middle of the experiment, otherwise it will affect the experimental data. For example, suppose a user was originally in the experimental group (Group A), and was not allowed to change to the control group (Group B) or move outside the experiment in the middle of the experiment. After the traffic ratio is adjusted in the rule configuration page, the local server 4 obtains the new diversion rule, and the diversion update of all servers can be realized.
[0120] In addition, the rule configuration page also supports multi-level grouping experiments, and theoretically supports unlimited levels of grouping. In order to achieve multi-level grouping, a multi-tree data structure is used in this embodiment. For example, first configure Group A (10%) and Group B (10%) of the first-level experiment (20% of the traffic), and Group B can be subdivided into Group C (5%) and Group D (5%) for the second-level experiment. Group C can also be subdivided into Group E (4%) and Group F (1%) for the third-level experiment. By analogy, unlimited levels of traffic segmentation can be achieved.
[0121] For multi-level group experiments, these experiments can be run on different independent layers. In this way, each experiment can enjoy all user traffic alone, and each user (client 6) can also participate in multiple experiments at different layers at the same time, and cross-acquire experimental versions of different layers, so as to efficiently conduct the AB experiment. However, there is a prerequisite for using this experimental method: the experiments at different layers are independent and do not interfere with each other in product logic. Assuming that the first experiment and the second experiment interfere with each other logically, but run on different layers, then a user may participate in both the first experiment and the second experiment at the same time, which may cause contradictions or unexpected results. For example, the first experiment is participated by client 6 with a user ID ending in 1, and the second experiment is participated by client 6 with a user ID ending in 11. Then client 6 with a user ID ending in 11 needs to participate in both the first experiment and the second experiment. The mutual interference between the first experiment and the second experiment may cause experimental data pollution and affect the experimental results.
[0122] In order to avoid mutual interference between multiple groups of experiments conducted simultaneously, this embodiment adds random salt when grouping. Different experiments use random salts generated by the system, and different random salts are used to achieve orthogonality of the same user (device) in different experiments. In cryptography, by inserting a specific string of characters at any fixed position in the password, the hashed result is made inconsistent with the hashed result of the original password. This process is called "salting", and the specific string of characters added is called "random salt". For example, in the above-mentioned specific diversion method, a random string of characters is added to the digits of the user ID, and the random string of characters is the random salt added when grouping the AB experiment.
[0123] The transmission module 602 is used to transmit the configured diversion rules to the local server 4, so that the diversion engine of the local server 4 performs group calculation according to the diversion rules and allocates corresponding experimental tasks to the clients 6 of each group.
[0124] In this embodiment, all the local servers 4 can integrate the SDK of the AB experiment, and the local server 4 integrates the diversion engine (the computing resources of the diversion are distributed inside each local server 4, rather than being processed centrally in the central server 2), and the local server 4 periodically obtains the diversion rules from the central server 2. The transmission module 602 transmits the diversion rules of the AB experiment configured in the rule configuration page to each local server 4. The local server 4 updates the diversion engine according to the obtained diversion rules.
[0125] The traffic diversion engine of the local server 4 performs group calculation for the clients 6 connected thereto according to the diversion rules and assigns corresponding experimental tasks to the clients 6 of each group. After performing the group calculation, the local server 4 assigns the experimental tasks of the corresponding group to each client 6, obtains experimental data from the client 6 in real time, and then reports the experimental data to the central server 2.
[0126] The receiving module 604 is used to receive the grouping information and experimental data reported by the local server 4.
[0127] The receiving module 604 can receive the grouping information and the experimental data reported by the local server 4 (of the client 6 connected to the local server 4). The grouping information and the experimental data can be reported in a preset specified format so that the central server can quickly analyze and process them.
[0128] The display module 606 is used to perform real-time analysis and processing based on the grouping information and the experimental data and display them to the user for viewing.
[0129] For a group of AB experiments or multiple groups of AB experiments existing at the same time, the display module 606 can perform real-time analysis and processing based on the grouping information and the experimental data, so that users can view the diversion situation and experimental data effects in real time (data updates can be achieved at the minute level). The experimental data effects include business indicators entered in advance, which are subdivided into indicator dimensions and specific data indicators. The indicator dimensions can be understood as a general term for a group of data indicators. For example, the click-through rate is an indicator dimension, which includes exposure data, click data, etc.
[0130] The AB experiment integration system proposed in this embodiment can provide a fast and distributed AB experiment solution, use AST syntax to achieve dynamic real-time diversion, realize the function of multi-level grouping through multi-tree data structure and random salt, and use the access of distributed computing engine to distribute the computing resources. It also integrates real-time data reporting and analysis processing, and can view the diversion situation and experimental data effect of AB experiments in real time.
[0131] Embodiment 5
[0132] like Figure 8As shown, a module schematic diagram of an AB experiment integration system 60 is proposed for the fifth embodiment of the present application. In this embodiment, the AB experiment integration system 60 can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can perform specific functions. The following description will specifically introduce the functions of each program module in this embodiment.
[0133] In this embodiment, the B experiment integration system 60 runs in the local server 4, and the AB experiment integration system 60 includes:
[0134] The acquisition module 610 is used to periodically acquire the diversion rules of the AB experiment from the central server 2 and update the diversion engine according to the diversion rules.
[0135] In this embodiment, all the local servers 4 can integrate the SDK of the AB experiment, and the local server 4 has an internal diversion engine integrated therein (the computing resources for diversion are distributed within each local server 4, rather than being processed centrally in the central server 2), and the acquisition module 610 periodically acquires the diversion rules from the central server 2, and updates the diversion engine according to the acquired diversion rules. In the local server 4, all diversion algorithms have no network requests and are implemented through local CPU calculations. The advantages of the above processing method are: the computing resources are distributed to each business party (local server 4) as much as possible, the central server 2 only performs centralized management of the rules, all the rules can be completed only through the configuration of the rule configuration page, and the computing resources required by the central server 2 will not increase with the increase of the AB experiment business parties.
[0136] It is worth noting that the diversion engine in this embodiment also supports fault-tolerant processing. The diversion rules with grammatical errors will not take effect immediately after configuration, but will continue to use the last correct configuration. That is to say, after obtaining the diversion rules, the diversion engine first determines whether there are grammatical errors in the diversion rules. If there are grammatical errors, the diversion rules will not take effect, and the last correct diversion rules will be used. If there are no grammatical errors, the diversion engine will be updated according to the diversion rules.
[0137] The calculation module 612 is used to perform group calculation on the client 6 connected to the local server 4 according to the diversion rule through the diversion engine, and report the group information to the central server 2.
[0138] The diversion engine of the local server 4 performs group calculation for the client 6 connected thereto according to the diversion rule. The diversion engine obtains the basic information corresponding to each of the client 6, and calculates the group to which the client 6 belongs according to the grammatical description in the diversion rule and the basic information. For example, the calculation module 612 can obtain the user ID corresponding to each of the client 6, and calculate the group to which the user ID belongs according to the grammatical description in the diversion rule. For example, the client 6 with a user ID ending in 0 belongs to the experimental group (Group A), and the client 6 with a user ID ending in 1 belongs to the control group (Group B). After completing the above group calculation, the local server 4 reports the group information to the central server 2. The group information includes the basic information (such as user ID, device ID, etc.) of each client 6 connected to the local server 4 and the group to which it belongs (such as Group A, Group B), etc. The group information can be reported in a preset specified format so that the central server can quickly analyze and process it.
[0139] For multi-level grouping experiments, a multi-layer multi-branch tree data structure is used in the diversion rules. At this time, the diversion engine mainly looks for nodes that match each client 6 in the multi-branch tree. After receiving the request from the client 6 (i.e., after obtaining the user ID and other information of the client 6), the local server 4 can use the depth-first traversal algorithm in the computer data structure to traverse the child nodes of the multi-branch tree first. If it does not meet the requirements, it will go back to its parent node, and so on to find the experimental group to which the client 6 belongs. Among them, it is first determined whether the client 6 meets the diversion method of the AB experiment, and which group (Group A, Group B) of the AB experiment it belongs to. If it does not meet the requirements, it will return to the default group.
[0140] The allocation module 614 is used to allocate experimental tasks to the client 6 according to the result of the group calculation.
[0141] After performing group calculation, the allocation module 614 will allocate the experimental task of the corresponding group to each corresponding client 6. The experimental task mainly provides the strategy or style of the Internet product corresponding to the group to the client 6 of each group, so that the user of the client 6 can participate in the product experience of the group and provide experimental data.
[0142] The reporting module 616 is used to obtain experimental data from the client 6 and report the experimental data to the central server 2.
[0143] The reporting module 616 can obtain experimental data from the connected client 6 in real time, and then report the experimental data to the central server 2. The experimental data can be reported in a preset specified format so that the central server can quickly analyze and process it.
[0144] After the central server 2 receives the grouping information and the experimental data reported by the local server 4, it can perform real-time analysis and processing based on the grouping information and the experimental data for a group of AB experiments or multiple groups of AB experiments that exist simultaneously, so that users can view the diversion situation and experimental data effects in real time (data updates can be achieved at the minute level). The experimental data effects include business indicators entered in advance, which are subdivided into indicator dimensions and specific data indicators. The indicator dimensions can be understood as a general term for a group of data indicators. For example, the click-through rate is an indicator dimension, which includes exposure data, click data, etc.
[0145] The AB experiment integration system proposed in this embodiment can provide a fast and distributed AB experiment solution, use AST syntax to achieve dynamic real-time diversion, realize the function of multi-level grouping through multi-tree data structure and random salt, and use the access of distributed computing engine to distribute the computing resources. It also integrates real-time data reporting and analysis processing, and can view the diversion situation and experimental data effect of AB experiments in real time.
[0146] Embodiment 6
[0147] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores an AB experiment integration program, and the AB experiment integration program can be executed by at least one processor so that the at least one processor performs the steps of the AB experiment integration method as described above.
[0148] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0149] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0150] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0151] The above are only preferred embodiments of the embodiments of the present application, and are not intended to limit the patent scope of the embodiments of the present application. Any equivalent structure or equivalent process transformation made using the description and drawings of the embodiments of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the embodiments of the present application.
Claims
1. An AB experiment integration method, applied to a central server, characterized in that: The central server is connected to one or more local servers for communication, and the method includes: Configuring the diversion rules of the AB experiment, wherein the configuration of the diversion rules is implemented by a grammar decision tree, and orthogonality of the same client in different experiments is achieved by adding random salts to the diversion rules; Transmitting the configured traffic diversion rules to the local server, so that the traffic diversion engine of the local server performs group calculations on the connected multiple clients according to the traffic diversion rules and allocates corresponding experimental tasks to the clients in each group; receiving the grouping information obtained according to the grouping calculation and the experimental data of the client reported by the local server; and Real-time analysis and processing are performed based on the grouping information and the experimental data and displayed to the user for viewing.
2. The AB experiment integration method according to claim 1, characterized in that: The diversion rules support dynamic configuration according to multi-dimensional information and multiple algorithms.
3. The AB experiment integration method according to claim 1 or 2, characterized in that: The diversion rules for configuring the AB experiment include: Multi-level grouping experiments are configured through a multi-tree data structure.
4. The AB experiment integration method according to claim 3, characterized in that: The diversion rules for configuring the AB experiment also include: The traffic proportion is adjusted in real time during the running of the AB experiment.
5. An AB experiment integration system, applied to a central server, characterized in that: The central server is connected to one or more local servers for communication, and the system includes: A configuration module, used to configure the diversion rules of the AB experiment, wherein the configuration of the diversion rules is implemented through a grammatical decision tree, and orthogonality of the same client in different experiments is achieved by adding random salts to the diversion rules; A transmission module, used for transmitting the configured diversion rule to the local server, so that the diversion engine of the local server performs group calculation on the connected multiple clients according to the diversion rule and allocates corresponding experimental tasks to the clients in each group; A receiving module, used for receiving the grouping information calculated according to the grouping and the experimental data of the client reported by the local server; The display module is used to perform real-time analysis and processing based on the grouping information and the experimental data and display them to the user for viewing.
6. An AB experiment integration method, applied to a local server, characterized in that: The method comprises: Regularly obtain the diversion rules of the AB experiment from the central server, and update the local diversion engine according to the diversion rules, wherein the configuration of the diversion rules is implemented through a grammatical decision tree, and the orthogonality of the same client in different experiments is achieved by adding random salts to the diversion rules; The traffic distribution engine performs grouping calculation on multiple clients connected to the local server according to the traffic distribution rule, and reports grouping information to the central server; Allocating experimental tasks to the client according to the result of the group calculation; and Acquire experimental data from the client and report the experimental data to the central server.
7. The AB experiment integration method according to claim 6, characterized in that: The updating of the local diversion engine according to the diversion rule includes: Determine whether there is a grammatical error in the diversion rule; If there is a grammatical error, the diversion rule will not take effect, and the last correct diversion rule will be used; If there is no syntax error, the diversion engine is updated according to the diversion rule.
8. The AB experiment integration method according to claim 6, characterized in that: The grouping and calculating of the multiple clients connected to the local server according to the diversion rule includes: The basic information corresponding to each of the clients is obtained, and the group to which the client belongs is calculated according to the grammatical description in the diversion rule and the basic information.
9. The AB experiment integration method according to claim 8, characterized in that: The grouping and calculating of the multiple clients connected to the local server according to the diversion rule further includes: For the multi-level grouping experiment configured by the multi-tree data structure, the depth-first traversal algorithm is used to traverse the child nodes of the multi-tree first. If the conditions of the child node are not met, it is traced back to the parent node of the child node, and so on to find the group to which the client belongs.
10. An AB experiment integration system, applied to a local server, characterized in that: The system comprises: An acquisition module is used to periodically acquire the diversion rules of the AB experiment from a central server, and update a local diversion engine according to the diversion rules, wherein the configuration of the diversion rules is implemented through a grammatical decision tree, and orthogonality of the same client in different experiments is achieved by adding random salts to the diversion rules; A calculation module, used for the traffic distribution engine to perform group calculation on multiple clients connected to the local server according to the traffic distribution rule, and report group information to the central server; An allocation module, used for allocating experimental tasks to the client according to the result of the group calculation; The reporting module is used to obtain experimental data from the client and report the experimental data to the central server.
11. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and an AB experiment integration program stored in the memory and executable on the processor, wherein the AB experiment integration program, when executed by the processor, implements the AB experiment integration method as described in any one of claims 1 to 4 or 6 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an AB experiment integration program, and when the AB experiment integration program is executed by a processor, the AB experiment integration method according to any one of claims 1 to 4 or 6 to 9 is implemented.
