Method, device, electronic device and medium for A / B testing experiment

By determining the experimental number and bit array length of the event in the A/B test experiment, and using the hash function to filter the experimental information, the problem of poor storage and query performance in the existing technology is solved, and efficient experimental event filtering and data are achieved. analyze.

CN114942881BActive Publication Date: 2024-10-22BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210505955.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2024-10-22
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

In A/B testing experiments, it is difficult for the existing technology to use the least possible storage cost and the best possible performance to filter out events that match a certain experiment on the premise of meeting the flexible construction of test indicators, especially when the events can be simultaneously Hitting multiple experiments results in poor storage and query performance.

Method used

By determining the maximum number of experiments that an event can be assigned to during traffic distribution, determining the bit array length of the attribute value based on this number, and using a corresponding number of hash functions to determine whether the event is assigned to the target experiment, thereby performing test data analysis Efficiently filter matching events.

Benefits of technology

It achieves filtering out events that match a certain experiment with as little storage cost as possible and as high efficiency as possible, improves the data analysis efficiency of A/B testing experiments, and reduces the false alarm rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114942881B_ABST
    Figure CN114942881B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device, computer-readable storage medium and computer program product for A / B test experiment, which relates to the computer field, and in particular to the data storage technology field. The implementation scheme is: determining the maximum number of experiments that can be allocated to any event used for A / B test experiment when performing traffic allocation; determining the string length of the attribute value of the first attribute of the event based on the number of experiments, the first attribute is used to represent the experimental information of the experiment allocated to the event; determining the corresponding number of hash functions based on the number of experiments and the string length; and in response to the first event being allocated to one or more experiments during traffic allocation, determining the attribute value of the first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing the test data, it is determined whether the first event is allocated to the target experiment according to the attribute value of the first attribute.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computers, and in particular to the field of data storage technology, and specifically to a method, device, electronic device, computer-readable storage medium, and computer program product for A / B testing experiments. Background Art

[0002] The basic principle of A / B testing is to create two (A / B) or multiple (A / B / n) versions of the interface or process of a web page or App (application). In the same time dimension, groups of visitors with the same or similar attributes are allowed to randomly access these versions, collect user experience data and business data from each group, and finally analyze and evaluate the best version for formal adoption. In A / B testing experiments, the key is how to filter out events that match a certain experiment with the least storage cost and the best performance while being able to flexibly build test indicators. Summary of the invention

[0003] The present disclosure provides a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for an A / B testing experiment.

[0004] According to one aspect of the present disclosure, a method for an A / B test experiment is provided, comprising: determining the maximum number of experiments that can be allocated to any event used for the A / B test experiment when performing traffic allocation; determining the length of a bit array corresponding to an attribute value of a first attribute of the event based on the number of experiments, wherein the first attribute is used to represent experimental information of the experiment to which the event is allocated; determining a corresponding number of hash functions based on the number of experiments and the length of the bit array; and in response to a first event being allocated to one or more experiments during traffic allocation, determining an attribute value of a first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is allocated to a target experiment based on the attribute value of the first attribute.

[0005] According to another aspect of the present disclosure, there is provided an apparatus for an A / B test experiment, comprising: a first determination unit, configured to determine the maximum number of experiments that can be allocated to any event used for the A / B test experiment when performing traffic allocation; a second determination unit, configured to determine the length of a bit array corresponding to an attribute value of a first attribute of the event based on the number of experiments, wherein the first attribute is used to represent experimental information of the experiment to which the event is allocated; a third determination unit, configured to determine a corresponding number of hash functions based on the number of experiments and the length of the bit array; and a fourth determination unit, configured to determine, in response to a first event being allocated to one or more experiments during traffic allocation, an attribute value of a first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is allocated to a target experiment based on the attribute value of the first attribute.

[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to cause a computer to execute the method described in the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the method described in the present disclosure when executed by a processor.

[0009] According to one or more embodiments of the present disclosure, when allocating A / B test experiment traffic, a hash function is used to determine the attribute value in the form of a bit array in each event for representing the allocated experimental information, so that when analyzing the test data, it is possible to determine whether the relevant event hits the target experiment based on the attribute value, thereby achieving the goal of screening out events that match a certain experiment with the least possible storage cost and the highest possible efficiency.

[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0012] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0013] Figure 2 A schematic diagram of an A / B test experiment according to an embodiment of the present disclosure is shown;

[0014] Figure 3 A flowchart of a method for A / B testing experiment according to an embodiment of the present disclosure is shown;

[0015] Figure 4 A structural block diagram of a device for A / B testing experiments according to an embodiment of the present disclosure is shown; and

[0016] Figure 5 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0017] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0018] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0019] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0020] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0021] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0022] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of methods for A / B testing experiments.

[0023] In some embodiments, server 120 may also provide other services or software applications that may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0024] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0025] A user may use client devices 101, 102, 103, 104, 105, and / or 106 to determine test metrics, generate test events, etc. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0026] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0027] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0028] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0029] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0030] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0031] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0032] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as factual data for testing experiments. The database 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The database 130 may be of different types. In some embodiments, the database used by the server 120 may be, for example, a relational database. One or more of these databases may store, update, and retrieve data from the database in response to a command.

[0033] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0034] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0035] In an A / B test experiment, user behavior is usually analyzed based on an event-attribute data model. In the test platform, the data stored at the bottom layer is called "fact data". Table 1 shows multiple fact data forms in an exemplary embodiment, where each line is a user behavior and each column is an attribute of the behavior. Based on these data, real-time data analysis is performed to obtain analysis results, thereby analyzing and evaluating the best product performance.

[0036]

[0037] Table 1

[0038] In an A / B test experiment, traffic is first divided into different A / B test experiments based on certain strategies. This traffic is a large number of user events. At the same time, multiple experimental layers are also supported, such as Figure 2 As shown in the figure, the traffic of each experimental layer is orthogonal (i.e. shared), and the traffic within each experimental layer is mutually exclusive (i.e. the traffic between experiments in the same layer does not cross), so that traffic can be reused to perform multiple experiments at the same time. This means that an event may hit multiple experiments, and the number does not exceed the number of experimental layers at most.

[0039] During the specific test process, you can customize indicators for the traffic of the control group / experimental group under a specific experiment and calculate the indicator values ​​of each experimental group / control group in real time to evaluate the experimental effect. This means that you need to quickly filter out all events that hit a specific experiment from a massive amount of factual data, and each event may hit multiple experiments at the same time. Therefore, you need to use as little storage cost as possible, with the highest efficiency and acceptable false alarm rate to achieve traffic screening.

[0040] Usually, the indicators of each experimental group / control group can be calculated by offline calculation. After the offline calculation is completed, only the results need to be displayed when querying the data, and there is no need to analyze all user behavior data. The process is generally as follows: define the diversion strategy, focus indicators, experimental parameters and other information of each experiment; determine which experiments the user hits based on the diversion strategy; describe the information of the hit experiment through a certain data structure and report it with the behavior data; during the calculation process, calculate and store the indicators based on the hit experiment; directly display the calculation results in the experimental report. In the user experience experiment, this indicator can be, for example, the average page dwell time per person.

[0041] However, the offline calculation method has poor flexibility, which means that the indicators need to be defined when the experiment is created, and when performing subsequent data analysis, the indicator definition cannot be flexibly modified and the indicator value cannot be calculated in real time.

[0042] In order to flexibly modify the indicator definition, the experimental data is usually stored in full. However, the performance of storing the fact data in full is poor when performing real-time query analysis. This is because it is necessary to extract the events that hit a certain experiment from the massive amount of fact data. When an event can hit multiple experiments, the cost is very high. If a field is used to store the identifiers of all experiments that hit, it means that each screening needs to traverse all the experiment identifiers of each event and compare them with the target experiment identifier, which has poor performance.

[0043] According to an embodiment of the present disclosure, a method for A / B test experiments is provided, including: determining the maximum number of experiments that can be allocated to any event used in the A / B test experiment when performing traffic allocation; determining the bit array length corresponding to the attribute value of the first attribute of the event based on the number of experiments, the first attribute being used to represent experimental information of the experiment allocated to the event; determining a corresponding number of hash functions based on the number of experiments and the bit array length; and in response to a first event being allocated to one or more experiments during traffic allocation, determining the attribute value of the first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is allocated to a target experiment based on the attribute value of the first attribute.

[0044] According to an embodiment of the present disclosure, when allocating A / B test experiment traffic, a hash function is used to determine the attribute value in the form of a bit array for representing the allocated experimental information in each event, so that when analyzing the test data, it is possible to determine whether the relevant event hits the target experiment based on the attribute value, thereby achieving the goal of screening out events that match a certain experiment with the least possible storage cost and the highest possible efficiency.

[0045] Figure 3 FIG. 1 is a flow chart of a method for an A / B test experiment according to an embodiment of the present disclosure. Figure 3 As shown, in step 310, the maximum number of experiments that can be allocated to any event used for the A / B test experiment when allocating traffic is determined; in step 320, the length of the bit array corresponding to the attribute value of the first attribute of the event is determined based on the number of experiments, and the first attribute is used to represent the experimental information of the experiment allocated to the event.

[0046] In the present disclosure, the length of the bit array corresponding to the attribute value of the first attribute is determined based on the number of experiments that can be assigned to the event, so that the first attribute can save enough experimental information.

[0047] Continue to refer Figure 2 ,exist Figure 2In the example, the traffic in each experimental layer is orthogonal (i.e. shared), and the traffic within each experimental layer is mutually exclusive (i.e., traffic between experiments in the same layer does not cross). Therefore, each event can be assigned to a maximum of 3 experiments, i.e., the number of experimental layers.

[0048] According to some embodiments, the length of the bit array corresponding to the attribute value of the first attribute is determined based on the number of experiments and a preset false positive rate. The false positive rate is the probability of falsely judging the first event as matching the target experiment.

[0049] Specifically, assuming that an event can be assigned to n experiments at most, and the probability of misjudging an event that is not matched to an experiment as being matched to an experiment is p (i.e., the false positive rate), the bit array length m corresponding to the attribute value of the first attribute of each event can be obtained based on the following formula:

[0050]

[0051] It is understandable that the length of the bit array corresponding to the attribute value of the first attribute may be determined in any suitable manner, which is not limited herein.

[0052] In step 330, a corresponding number of hash functions is determined based on the number of experiments and the length of the bit array.

[0053] According to some embodiments, the ratio of the bit array length to the number of experiments is positively correlated with the number of hash functions.

[0054] For example, the number of hash functions can be obtained based on the following formula:

[0055]

[0056] Among them, m is the length of the bit array corresponding to the attribute value of the first attribute determined above, and n is the maximum number of experiments that can be assigned to an event.

[0057] It can be understood that the number of hash functions can be determined in any suitable manner and is not limited herein.

[0058] In some examples, after determining the number of hash functions, a corresponding number of hash functions can be determined, for example, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512 / 224, SHA-512 / 256, etc.

[0059] In step 340, in response to the first event being assigned to one or more experiments during traffic distribution, the attribute value of the first attribute corresponding to the first event is determined based on a corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is assigned to the target experiment based on the attribute value of the first attribute.

[0060] According to some embodiments, determining the attribute value of the first attribute corresponding to the first event includes: determining the bit arrays corresponding to the one or more experiments respectively based on the corresponding number of hash functions, wherein the bit arrays corresponding to the one or more experiments respectively have the same length as the bit array corresponding to the attribute value of the first attribute; and determining the attribute value of the first attribute corresponding to the first event based on the bit arrays corresponding to the one or more experiments.

[0061] Specifically, the bit array corresponding to each experiment can be determined and saved based on the corresponding number of hash functions. Then, after the event is assigned to one or more experiments, the attribute value of the first attribute corresponding to the first event is determined based on the bit arrays corresponding to the one or more experiments. Thus, in the subsequent data analysis stage, when judging whether an event is assigned to a target experiment, the bit array of the target experiment and the attribute value of the first attribute of the event can be directly obtained for judgment. Determining the attribute value of each event based on the saved bit array of each experiment can facilitate efficient determination of whether an event is assigned to a target experiment in the subsequent data analysis process.

[0062] According to some embodiments, determining the attribute value of the first attribute corresponding to the first event based on the bit arrays corresponding to one or more experiments may include: performing a bitwise OR operation on the bit arrays corresponding to the one or more experiments to determine the attribute value of the first attribute corresponding to the first event.

[0063] As described above, after an event is assigned to one or more experiments, the attribute value of the first attribute corresponding to the first event can be determined based on the bit arrays corresponding to the one or more experiments. The bit array has the same length as the bit array corresponding to the attribute value of the first attribute, so the bit arrays corresponding to the one or more experiments can be bitwise ORed to obtain the attribute value of the first attribute.

[0064] In some examples, the corresponding position of the bit array corresponding to the experiment is 1, and the irrelevant position is 0; different experiments can obtain different bit arrays based on the corresponding number of hash functions. Therefore, by bitwise OR, the attribute value of the first attribute can include the information of all experiments to which it is assigned.

[0065] According to some embodiments, determining the bit arrays corresponding to one or more experiments may include: determining the experiment identifiers of the one or more experiments; and determining the bit arrays corresponding to the one or more experiments based on the experiment identifiers and the corresponding number of hash functions.

[0066] For example, the experiment identifier includes but is not limited to an experiment ID, an experiment name, etc. The experiment identifier can uniquely represent the experiment. In some examples, the bit arrays corresponding to one or more experiments can be determined based on a Bloom filter algorithm and the corresponding number of hash functions.

[0067] Through a hash function, the experiment identifier is mapped to a point in a bit array. Therefore, based on the corresponding number of hash functions, the corresponding point in the bit array can be set to 1, and the obtained bit array corresponds to the experiment identifier. Therefore, by making each experiment obtain a unique bit array, the accuracy of subsequent data analysis is improved, and many unnecessary disk IO operations can be avoided.

[0068] According to some embodiments, determining whether the first event matches the target experiment based on the attribute value of the first attribute may include: determining the bit array corresponding to the target experiment; and performing a bitwise AND of the bit array corresponding to the target experiment and the attribute value of the first attribute to determine whether the first event matches the target experiment.

[0069] Specifically, the corresponding position of the bit array corresponding to the experiment is 1, and the irrelevant position is 0. The attribute value of the first attribute of the first event is obtained by bitwise OR of the bit arrays corresponding to one or more experiments, so that the attribute value of the first attribute corresponding to the above experiment should be set to 1. For example, the string data of Experiment 1 is 00100001, and the string data of Experiment 2 is 10001000; the first event is assigned to Experiment 1 and Experiment 2, then through bitwise OR, the attribute value of the first attribute of the first event can be obtained as 10101001. During data analysis, if it is necessary to determine whether the first event is assigned to Experiment 2, the bit array of Experiment 2 can be bitwise ANDed with the attribute value of the first attribute of the first event. If the result is equal to the bit array of Experiment 2, it indicates that the first event is assigned to Experiment 2.

[0070] In an exemplary application according to the present disclosure, in the data collection stage, all experiments assigned to each event are determined by the diversion service, and then a hash operation is performed on each experiment ID based on the determined k hash functions. Each experiment ID is calculated to obtain k values, so that the experiment ID is mapped to a corresponding point in the bit array. During data analysis and query, it is necessary to determine the events that match a specific experiment. Therefore, the bit array of the specific experiment can be obtained based on the same k hash functions, and the bit array of the specific experiment and the bit array corresponding to the event to be determined are bitwise ANDed & operated to filter out all traffic that matches the specific experiment.

[0071] According to the embodiments of the present disclosure, Figure 4As shown, a device 400 for an A / B test experiment is also provided, including: a first determination unit 410, configured to determine the maximum number of experiments that can be allocated to any event used for the A / B test experiment when performing traffic allocation; a second determination unit 420, configured to determine the bit array length corresponding to the attribute value of the first attribute of the event based on the number of experiments, wherein the first attribute is used to represent the experimental information of the experiment allocated to the event; a third determination unit 430, configured to determine a corresponding number of hash functions based on the number of experiments and the bit array length; and a fourth determination unit 440, configured to determine, in response to the first event being allocated to one or more experiments during traffic allocation, the attribute value of the first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is allocated to the target experiment according to the attribute value of the first attribute.

[0072] Here, the operations of the above-mentioned units 410 to 440 of the device 400 for A / B test experiment are similar to the operations of the steps 310 to 340 described above, and are not described in detail here.

[0073] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0074] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

[0075] refer to Figure 5 , a block diagram of an electronic device 500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0076] like Figure 5As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0077] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 can be any type of device that can input information to the electronic device 500. The input unit 506 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 507 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 508 can include but is not limited to a disk, an optical disk. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0078] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as method 300. For example, in some embodiments, the method 300 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method 300 described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method 300 in any other appropriate manner (e.g., by means of firmware).

[0079] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0080] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0081] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0082] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0083] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0084] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0085] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0086] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A method for an A / B testing experiment, comprising: Determine the maximum number of experiments that can be allocated when allocating traffic for any event used in the A / B test experiment; Determine, based on the number of experiments, a bit array length corresponding to an attribute value of a first attribute of the event, wherein the first attribute is used to represent experimental information of the experiment assigned to the event; Determining a corresponding number of hash functions based on the number of experiments and the length of the bit array; as well as In response to a first event being allocated to one or more experiments during traffic allocation, determining an attribute value of a first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, determining whether the first event is allocated to a target experiment according to the attribute value of the first attribute, wherein determining the attribute value of the first attribute corresponding to the first event includes: Determine, based on the corresponding number of hash functions, bit arrays corresponding to the one or more experiments, respectively, wherein the bit arrays corresponding to the one or more experiments are the same length as the bit array of the attribute value of the first attribute; and Determining the attribute value of the first attribute corresponding to the first event based on the bit arrays corresponding to the one or more experiments includes: performing a bitwise OR operation on the bit arrays corresponding to the one or more experiments to determine the attribute value of the first attribute corresponding to the first event, Wherein, determining whether the first event matches a target experiment according to the attribute value of the first attribute includes: Determining the bit array corresponding to the target experiment; and Perform a bitwise AND operation on the bit array corresponding to the target experiment and the attribute value of the first attribute to determine whether the first event matches the target experiment.

2. The method of claim 1, wherein: Determining the bit arrays corresponding to the one or more experiments respectively includes: determining an experiment identifier for the one or more experiments; and Based on the experiment identifier and the corresponding number of hash functions, bit arrays corresponding to the one or more experiments are determined.

3. The method of claim 1, wherein: The length of the bit array corresponding to the attribute value of the first attribute is determined based on the number of experiments and a preset false positive rate, wherein the false positive rate is a probability of falsely judging the first event as matching the target experiment.

4. The method of claim 1, wherein: The ratio of the bit array length to the number of experiments is positively correlated with the number of hash functions.

5. A device for an A / B testing experiment, comprising: A first determining unit is configured to determine a maximum number of experiments that can be allocated when allocating traffic for any event in the A / B test experiment; A second determining unit is configured to determine, based on the number of experiments, a bit array length corresponding to an attribute value of a first attribute of the event, wherein the first attribute is used to represent experimental information of the experiment assigned to the event; A third determining unit is configured to determine a corresponding number of hash functions based on the number of experiments and the length of the bit array; as well as A fourth determination unit is configured to determine, in response to the first event being allocated to one or more experiments during traffic allocation, a property value of a first attribute corresponding to the first event based on the corresponding number of hash functions, so that when analyzing test data, it is determined whether the first event is allocated to a target experiment according to the property value of the first attribute, wherein the fourth determination unit includes: A unit for determining, based on the corresponding number of hash functions, bit arrays corresponding to the one or more experiments, respectively, wherein the bit arrays corresponding to the one or more experiments are the same length as the bit array of the attribute value of the first attribute; and a unit for determining the attribute value of the first attribute corresponding to the first event based on the bit arrays corresponding to the one or more experiments, comprising: a unit for performing bitwise OR on the bit arrays corresponding to the one or more experiments to determine the attribute value of the first attribute corresponding to the first event, The fourth determining unit enables the following operations: Determining the bit array corresponding to the target experiment; and Perform a bitwise AND operation on the bit array corresponding to the target experiment and the attribute value of the first attribute to determine whether the first event matches the target experiment.

6. The device according to claim 5, wherein: The unit for determining the bit groups corresponding to the one or more experiments respectively comprises: means for determining an experiment identification of the one or more experiments; and A unit for determining, based on the experiment identifier and the corresponding number of hash functions, bit groups corresponding to the one or more experiments.

7. The device according to claim 5, wherein: The length of the bit array corresponding to the attribute value of the first attribute is determined based on the number of experiments and a preset false positive rate, wherein the false positive rate is a probability of falsely judging the first event as matching the target experiment.

8. The device according to claim 5, wherein: The ratio of the bit array length to the number of experiments is positively correlated with the number of hash functions.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-4.

11. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.