Information processing method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202210927018.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-03
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-08-03
AI Technical Summary
在这种情况下,可能会生成大量的时间片配置,用以指导周期性的测试进行,但是,大量的时间片配置不易于进行时间信息的修改,可阅读性也不高
[0015]根据本公开的信息处理方法、装置、电子设备及存储介质,时间配置信息包括目标测试的开始时间和结束时间、每个测试周期内包括的时间片的数量和时长、每个时间片的索引、以及每个索引的索引值,能够简单、直观地描述目标测试的相关的时间信息,使得时间配置信息具有较高的可阅读性,并且,在需要配置或者是修改时间配置信息时可做出快速方便地配置。
Smart Images

Figure CN115309639B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to an information processing method, apparatus, electronic device and storage medium. Background Technology
[0002] Internet content platforms can compare information through testing. Testing can be conducted periodically, and within each period, different time slices can be used for different types of testing. These different types of tests can be used for information comparison. For example, a test might last one day, with a one-hour test cycle. Within each hour, one type of test could be performed for the first 30 minutes, and another type for the last 30 minutes, with the two tests used for information comparison. In this scenario, a large number of time slice configurations might be generated to guide the periodic testing. However, a large number of time slice configurations makes it difficult to modify the time information and reduces readability. Summary of the Invention
[0003] This disclosure provides an information processing method, apparatus, electronic device, and storage medium to at least solve the problems in the aforementioned related technologies, or may not solve any of the aforementioned problems. The technical solution of this disclosure is as follows:
[0004] According to a first aspect of the present disclosure, an information processing method is provided, comprising: acquiring time configuration information of a target test, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices; executing the target test based on the time configuration information; wherein the time configuration information includes the start time and end time of the target test, the number and duration of time slices included in each test cycle, the index of each time slice, and the index value of each index; wherein the target test includes a first type of test and a second type of test, the index of each time slice indicates which time slice is among the multiple time slices, and the index value of each index indicates whether the time slice corresponding to each index is a first type of test time or a second type of test time.
[0005] Optionally, the information processing method further includes: receiving a business request, the business request being used to determine the current execution status of the target test at the current time; and responding to the business request, determining the current execution status based on the current time and the time configuration information.
[0006] Optionally, determining the current execution status based on the current time and the time configuration information includes: determining the index of the time slice corresponding to the current time based on the current time, the start time of the target test, the number and duration of time slices included in each test cycle; and determining whether the target test is executing a first type of test or a second type of test at the current time based on the determined index and the index value of each index.
[0007] Optionally, determining the index of the time slice corresponding to the current time based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle includes: determining the duration of the test cycle to which the current time is located up to the current time based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle; and determining the index of the time slice corresponding to the current time based on the duration of the test cycle to which the current time is located and the duration of the time slices included in each test cycle.
[0008] Optionally, determining the duration of the test cycle in which the current time is located, based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle, includes: determining the duration of each test cycle based on the number and duration of time slices included in each test cycle; determining the duration of the target test in which the target test has been executed up to the current time, based on the start time of the target test; and determining the duration of the test cycle in which the current time is located, based on the duration of the target test and the duration of each test cycle.
[0009] Optionally, determining whether the target test is executing a first type of test or a second type of test at the current time based on the determined index and the index value of each index includes: determining the index value corresponding to the determined index based on the index value of each index; and determining whether the target test is executing a first type of test or a second type of test at the current time based on the index value corresponding to the determined index.
[0010] According to a second aspect of the present disclosure, an information processing apparatus is provided, comprising: an information acquisition unit configured to: acquire time configuration information of a target test, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices; and a test execution unit configured to: execute the target test based on the time configuration information; wherein the time configuration information includes the start time and end time of the target test, the number and duration of time slices included in each test cycle, an index of each time slice, and an index value of each index; wherein the target test includes a first type of test and a second type of test, the index of each time slice indicates which time slice is among the multiple time slices, and the index value of each index indicates that the time slice corresponding to each index is a first type of test time or a second type of test time.
[0011] According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to perform an information processing method according to the present disclosure.
[0012] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that stores instructions which, when executed by at least one processor, cause the at least one processor to perform an information processing method according to the present disclosure.
[0013] According to a fifth aspect of the present disclosure, a computer program product is provided, including computer instructions that, when executed by at least one processor, implement the information processing method according to the present disclosure.
[0014] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:
[0015] According to the information processing method, apparatus, electronic device and storage medium disclosed herein, the time configuration information includes the start time and end time of the target test, the number and duration of time slices included in each test cycle, the index of each time slice and the index value of each index. It can simply and intuitively describe the relevant time information of the target test, making the time configuration information highly readable. Furthermore, it allows for quick and convenient configuration when the time configuration information needs to be configured or modified.
[0016] Furthermore, based on the information processing method, apparatus, electronic device, and storage medium disclosed herein, the current execution status of a target test at the current time can be abstracted into a mathematical model, and the execution status of the target test can be determined by simple calculations using time configuration information.
[0017] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure, and are not intended to unduly limit this disclosure.
[0019] Figure 1 This is a flowchart illustrating an information processing method according to an exemplary embodiment.
[0020] Figure 2 This is a flowchart illustrating another information processing method according to an exemplary embodiment.
[0021] Figure 3 This is a flowchart of the sub-step of step 202.
[0022] Figure 4 This is a block diagram illustrating an information processing apparatus according to an exemplary embodiment.
[0023] Figure 5 This is a block diagram of an electronic device 500 according to an exemplary embodiment. Detailed Implementation
[0024] To enable those skilled in the art to better understand the technical solutions of this disclosure, the technical solutions in the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0025] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following examples do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0026] It should be noted that the phrase "at least one of several items" in this disclosure refers to three parallel cases: "any one of the several items", "a combination of any number of the several items", and "all of the several items". For example, "including at least one of A and B" includes the following three parallel cases: (1) including A; (2) including B; (3) including A and B. As another example, "performing at least one of step one and step two" indicates the following three parallel cases: (1) performing step one; (2) performing step two; (3) performing both step one and step two.
[0027] Internet content platforms can use testing to compare information. Testing can be conducted in cycles, and within each cycle, different time slices can be used for different types of tests. These different types of tests can be used for information comparison. For example, a test might last one day, with a one-hour test cycle. Within each hour, one type of test could be performed for the first 30 minutes, and another type for the last 30 minutes, with the two tests used for information comparison. In this scenario, a script first generates 48 time slice configurations (each containing the start and end times, duration, and information describing the test category for that time slice). These 48 time slice configurations are then added to the system configuration (e.g., Kconfig). Finally, the tests can be guided based on these 48 time slice configurations in the system configuration.
[0028] In reality, depending on the application scenario, when the test duration is long and the time segments are short, a large number of time slice configurations may be generated. However, a large number of time slice configurations are not easy to modify the time information and are not very readable.
[0029] To address the problems existing in the aforementioned related technologies, this disclosure proposes an information processing method, apparatus, electronic device, and storage medium. The time configuration information includes the start and end times of the target test, the number and duration of time slices included in each test cycle, the index of each time slice, and the index value of each index. This information can simply and intuitively describe the relevant time information of the target test, making the time configuration information highly readable. Furthermore, it allows for quick and convenient configuration when the time configuration information needs to be configured or modified.
[0030] Below, we will refer to Figures 1 to 5 The information processing methods, apparatus, electronic devices, and storage media according to this disclosure will be described in detail.
[0031] Figure 1 This is a flowchart illustrating an information processing method according to an exemplary embodiment. (Refer to...) Figure 1In step 101, the time configuration information of the target test can be obtained, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices.
[0032] According to exemplary embodiments of this disclosure, the test can be, but is not limited to, an A / B test. As an example, the target test can be an A / B test based on time periods for experimentation and control. For instance, the target test can be a time-sliced A / B test, where the time-sliced A / B test is a periodic experiment. It divides the experiment duration into multiple periods (each period being a time segment), and then divides each period into an experimental group and a control group for experimentation (the experimental time for the experimental group and the experimental time for the control group are time slices). The time-sliced A / B test generates a configuration for each time slice to guide the A / B test. For example, using a day as the experiment duration, a 1-hour period, and the first 30 minutes of each hour as the experimental group and the last 30 minutes as the control group for the A / B test. According to exemplary embodiments of this disclosure, the target test can be applied to different scenarios, such as, but not limited to, tests conducted in user interaction scenarios on internet content platforms.
[0033] According to exemplary embodiments of this disclosure, the duration of each time slice in each test cycle of the target test may be equal. The target test may include, but is not limited to, a first type of test and a second type of test, with each time slice in each test cycle corresponding to a first type of test time or a second type of test time. It should be understood that there may be multiple first type of test times and / or multiple second type of test times within each test cycle. For example, but not limited to, a test cycle of 1 hour, with the first 20 minutes of each hour being a first type of test, the second 20 minutes being a second type of test, and the third 20 minutes being a first type of test. Of course, within a test cycle, there may be more than one first type of test or second type of test performed consecutively. For example, but not limited to, a test cycle of 1 hour, with the first 20 minutes of each hour being a first type of test, the second 20 minutes being a second type of test, and the third 20 minutes being a second type of test.
[0034] As an example, in the case of a time-sliced A / B experiment, the first type of test can be the experimental group, and the second type of test can be the control group. Of course, the first type of test can also be the control group, and correspondingly, the second type of test can be the experimental group. In this case, the target test can be called a target A / B experiment, the test period can be called the experimental period, and the test duration can be called the experimental duration. For example, if the experimental duration is one day, the experimental period is one hour, and the first 30 minutes of each hour in one day are the experimental group and the last 30 minutes are the control group, then the target A / B experiment can be expressed as the following formula (1):
[0035]
[0036] Where t is the time within the experimental duration of the target AB experiment, x(t) represents the execution status of the target AB experiment at time t, exp represents the execution of the experimental group experiment, base represents the execution of the control group experiment, (t at first 30min every hour) represents the first 30 minutes of each hour, and (t at second 30min every hour) represents the last 30 minutes of each hour. Based on the above formula (1), it can be seen that if the specified time within the experimental duration of the target AB experiment is known to be either the first 30 minutes or the last 30 minutes of its corresponding hour segment, it can be determined whether the target AB experiment is executing the experimental group experiment or the control group experiment at the specified time.
[0037] According to an exemplary embodiment of this disclosure, time configuration information may be stored in system configuration (such as Kconfig), based on which pre-saved time configuration information for the target test can be obtained from Kconfig.
[0038] In step 102, a target test can be executed based on the time configuration information. The time configuration information includes the start and end times of the target test, the number and duration of time slices in each test cycle, the index of each time slice, and the index value of each index. The target test includes a first type of test and a second type of test. The index of each time slice indicates which time slice it is among multiple time slices, and the index value of each index indicates whether the time slice corresponding to each index is a first type of test time or a second type of test time.
[0039] According to an exemplary embodiment of this disclosure, the index of each time slice and the index value of each index can be the index of each time slice and the index value of each index within each test period.
[0040] According to an exemplary embodiment of this disclosure, when the target test is a time-sliced A / B experiment, the time configuration information can be program code. Based on this, the structure of the start time of the target A / B experiment can be, but is not limited to, a long structure, and the start time of the target A / B experiment can be represented as, but is not limited to, long startTime; the structure of the end time of the target A / B experiment can be, but is not limited to, a long structure, and the end time of the target A / B experiment can be represented as, but is not limited to, long endTime; the structure of the number of time slices included in each experimental period can be, but is not limited to, an int structure, and the number of time slices included in each experimental period can be represented as, but is not limited to, int periodicTimes; the structure of the duration of the time slices included in each experimental period can be, but is not limited to, a long structure, and the duration of the time slices included in each experimental period can be represented as, but is not limited to, long timeSliceDuration; the index of each time slice and the index value of each index can be represented as a mapping relationship map, for example, but not limited to, Map.<Integer,Object> index2Value(where index is the index and value is the index value).
[0041] For example, in the case of a time-sliced A / B test, starting at 00:00 on April 22, 2022, ending at 00:00 on May 5, 2022, with an experimental cycle of 1 hour, and using the first 30 minutes of each hour as the experimental group and the last 30 minutes as the control group, the time configuration information for the target A / B test can be represented as follows:
[0042]
[0043] In this system, index 0 represents the first 30 minutes of each experimental period, and index 1 represents the second 30 minutes. An index value of true indicates that the time slice corresponding to index 0 (the first 30 minutes of each experimental period) is the experimental group's experimental time, while an index value of false indicates that the time slice corresponding to index 1 (the second 30 minutes of each experimental period) is the control group's experimental time. It should be noted that when time configuration information needs to be modified, quick adjustments can be made directly. For example, to change the duration of the time slices included in each experimental period from 30 minutes to 20 minutes, simply modify the `long timeSliceDuration` data, changing its setting from 30 minutes to 20 minutes. Similarly, to change the number of time slices included in each experimental period from 2 to 3, simply modify `int periodicTimes`, changing its corresponding value from 2 to 3, and add a pair of indices and index values to the mapping map.
[0044] According to an exemplary embodiment of this disclosure, in order to facilitate business processing, the current execution status of the target test at the current time can be determined in real time during the target test. Figure 2 This is a flowchart illustrating another information processing method according to an exemplary embodiment. Figure 2 The process shown is executed by the server. See below for reference. Figure 2 The process of determining the current execution status in real time is described in detail:
[0045] In step 201, a business request can be received. This business request is used to determine the current execution status of the target test at the current time. It should be noted that this business request can be a business request from a user client or a business request from the server.
[0046] Next, the current time can be passed in. Based on this, in step 202, in response to a business request, the current execution status can be determined based on the current time and time configuration information. The time configuration information can be read from the system configuration Kconfig.
[0047] Specifically, based on the above embodiments, the time configuration information includes the start and end times of the target test, the number and duration of time slices in each test cycle, the index of each time slice, and the index value of each index. Based on this, it is possible to determine whether the target test is performing a first type of test or a second type of test at the current time based on the specific content in the time configuration information.
[0048] Figure 3 This is the flowchart for the sub-step of step 202. (See reference) Figure 3 In step 2021, the index of the time slice corresponding to the current time can be determined based on the current time, the start time of the target test, the number of time slices included in each test cycle, and the duration.
[0049] Here, firstly, based on the current time, the start time of the target test, the number and duration of time slices included in each test cycle, we can determine the duration that the test cycle in which the current time is located has been executed up to the current time.
[0050] To elaborate, firstly, the duration of each test cycle can be determined based on the number and duration of time slices included in each test cycle. For example, but not limited to, the duration of each test cycle can be the product of the number and duration of time slices included in each test cycle. Secondly, based on the start time of the target test, the duration of the target test up to the current time can be determined. For example, but not limited to, the duration of the target test up to the current time can be the difference between the current time and the start time of the target test. Finally, based on the duration of the target test up to the current time and the duration of each test cycle, the duration of the test cycle in which the current time is located can be determined. For example, but not limited to, the duration of the test cycle in which the current time is located can be the remainder after dividing the duration of the target test up to the current time by the duration of each test cycle.
[0051] Then, based on the duration of the test cycle in which the current time is located and the duration of the time slices included in each test cycle, the index of the time slice corresponding to the current time can be determined.
[0052] To elaborate, based on the duration of the test cycle in which the current time is located, and the duration of the time slices included in each test cycle, it can be determined which time slice in the test cycle the current time corresponds to, and the corresponding index can be obtained based on the determined result.
[0053] In step 2022, based on the determined index and the index value of each index, it can be determined whether the target test is a type 1 test or a type 2 test executed at the current time.
[0054] Here, firstly, based on the index value of each index, the index value corresponding to the determined index can be determined; then, based on the index value corresponding to the determined index, it can be determined whether the target test is executing a first type of test or a second type of test at the current time.
[0055] According to an exemplary embodiment of this disclosure, when the target test is a time-sliced A / B experiment, the real-time determination of the current execution status of the target A / B experiment at the current time can be abstracted into a mathematical model. For example, if the experiment duration is one day, the experiment cycle is one hour, and the first 30 minutes of each hour in one day are the experimental group and the last 30 minutes are the control group, then the real-time determination of the current execution status of the target A / B experiment at the current time can be expressed as the following formula (2):
[0056] x(t)=(tt startTime )%T period <30min? exp: base (2)
[0057] Where t is the current time, and x(t) represents the current execution status. startTimeT is the start time of the target A / B experiment. period The duration of each experimental cycle,
[0058] (tt startTime )%T period <30min? exp: base means: when (tt startTime )%T period If the result is less than 30 minutes, it belongs to exp; otherwise, it belongs to base. exp means that the experimental group experiment is performed, and base means that the control group experiment is performed.
[0059] Figure 4 This is a block diagram illustrating an information processing apparatus according to an exemplary embodiment. (Reference) Figure 4 The information processing device 400 includes an information acquisition unit 401 and a test execution unit 402.
[0060] The information acquisition unit 401 can acquire the time configuration information of the target test, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices.
[0061] According to exemplary embodiments of this disclosure, the test can be, but is not limited to, an A / B experiment. As an example, the target test can be an A / B experiment based on time periods, such as a time-sliced A / B experiment. Here, a time-sliced A / B experiment is a periodic experiment, which divides the experimental duration into multiple periods (each period being a time segment), and then divides each period into an experimental group and a control group for experimentation (the experimental time for the experimental group and the experimental time for the control group are time slices). The time-sliced A / B experiment generates a configuration for each time slice to guide the A / B experiment. For example, using a day as the experimental duration, a 1-hour period, and the first 30 minutes of each hour in a day as the experimental group and the last 30 minutes as the control group for the A / B experiment.
[0062] According to exemplary embodiments of this disclosure, target testing can be applied to different scenarios, such as, but not limited to, testing conducted in scenarios involving user interaction on internet content platforms.
[0063] According to exemplary embodiments of this disclosure, the duration of each time slice in each test cycle of the target test may be equal. The target test may include, but is not limited to, a first type of test and a second type of test, with each time slice in each test cycle corresponding to a first type of test time or a second type of test time. It should be understood that there may be multiple first type of test times and / or multiple second type of test times within each test cycle. For example, but not limited to, a test cycle of 1 hour, with the first 20 minutes of each hour being a first type of test, the second 20 minutes being a second type of test, and the third 20 minutes being a first type of test. Of course, within a test cycle, there may be more than one first type of test or second type of test performed consecutively. For example, but not limited to, a test cycle of 1 hour, with the first 20 minutes of each hour being a first type of test, the second 20 minutes being a second type of test, and the third 20 minutes being a second type of test.
[0064] As an example, when the target test is a time-segmented A / B experiment, the first type of test can be the experimental group, and the second type of test can be the control group. Of course, the first type of test can also be the control group, and correspondingly, the second type of test can be the experimental group. In this case, the target test can be called a target A / B experiment, the test period can be called the experimental period, and the test duration can be called the experimental duration. For example, if the experimental duration is one day, the experimental period is one hour, and the first 30 minutes of each hour in one day are the experimental group and the last 30 minutes are the control group, then the target A / B experiment can be expressed as Equation (1) above. Based on Equation (1) above, it can be seen that if the specified time within the experimental duration of the target A / B experiment is the first 30 minutes or the last 30 minutes of its corresponding hour segment, it can be determined whether the target A / B experiment is an experimental group experiment or a control group experiment performed at the specified time.
[0065] According to an exemplary embodiment of this disclosure, time configuration information may be stored in system configuration (such as Kconfig), based on which pre-saved time configuration information for the target test can be obtained from Kconfig.
[0066] The test execution unit 402 can execute target tests based on time configuration information; wherein, the time configuration information includes the start and end times of the target tests, the number and duration of time slices included in each test cycle, the index of each time slice, and the index value of each index; wherein, the target tests include first type tests and second type tests, the index of each time slice indicates which time slice it is among multiple time slices, and the index value of each index indicates whether the time slice corresponding to each index is a first type test time or a second type test time.
[0067] According to an exemplary embodiment of this disclosure, the index of each time slice and the index value of each index can be the index of each time slice and the index value of each index within each test period.
[0068] According to an exemplary embodiment of this disclosure, when the target test is a time-sliced A / B experiment, the time configuration information can be program code. Based on this, the structure of the start time of the target A / B experiment can be, but is not limited to, a long structure, and the start time of the target A / B experiment can be represented as, but is not limited to, long startTime; the structure of the end time of the target A / B experiment can be, but is not limited to, a long structure, and the end time of the target A / B experiment can be represented as, but is not limited to, long endTime; the structure of the number of time slices included in each experimental period can be, but is not limited to, an int structure, and the number of time slices included in each experimental period can be represented as, but is not limited to, int periodicTimes; the structure of the duration of the time slices included in each experimental period can be, but is not limited to, a long structure, and the duration of the time slices included in each experimental period can be represented as, but is not limited to, long timeSliceDuration; the index of each time slice and the index value of each index can be represented as a mapping relationship map, for example, but not limited to, Map.<Integer,Object> index2Value(where index is the index and value is the index value).
[0069] For example, in the case of a time-sliced A / B test, starting at 00:00 on April 22, 2022, ending at 00:00 on May 5, 2022, with an experimental cycle of 1 hour, and using the first 30 minutes of each hour as the experimental group and the last 30 minutes as the control group, the time configuration information for the target A / B test can be represented as follows:
[0070]
[0071] In this system, index 0 represents the first 30 minutes of each experimental period, and index 1 represents the second 30 minutes. An index value of true indicates that the time slice corresponding to index 0 (the first 30 minutes of each experimental period) is the experimental group's experimental time, while an index value of false indicates that the time slice corresponding to index 1 (the second 30 minutes of each experimental period) is the control group's experimental time. It should be noted that when time configuration information needs to be modified, quick adjustments can be made directly. For example, to change the duration of the time slices included in each experimental period from 30 minutes to 20 minutes, simply modify the `long timeSliceDuration` data, changing its setting from 30 minutes to 20 minutes. Similarly, to change the number of time slices included in each experimental period from 2 to 3, simply modify `int periodicTimes`, changing its corresponding value from 2 to 3, and add a pair of indices and index values to the mapping map.
[0072] According to an exemplary embodiment of this disclosure, to facilitate business processing, the current execution status of the target test at the current time can be determined in real time during the execution of the target test. Based on this, the information processing apparatus 400 may further include a current execution status determination unit. This unit first receives a business request, which is used to determine the current execution status of the target test at the current time. It should be noted that this business request can be a business request from a user client or a business request from a server. Then, in response to the business request, the current execution status determination unit determines the current execution status based on the current time and time configuration information. The time configuration information can be read from the system configuration Kconfig.
[0073] Specifically, based on the above embodiments, the time configuration information includes the start and end times of the target test, the number and duration of time slices in each test cycle, the index of each time slice, and the index value of each index. Based on this, it is possible to determine whether the target test is executing a first-type test or a second-type test at the current time based on the specific content in the time configuration information. Therefore, the current execution status determination unit can first determine the index of the time slice corresponding to the current time based on the current time, the start time of the target test, and the number and duration of time slices in each test cycle; then, based on the determined index and the index value of each index, it can determine whether the target test is executing a first-type test or a second-type test at the current time.
[0074] Furthermore, to determine the index of the time slice corresponding to the current time, firstly, the current execution status determination unit can determine the duration of the test cycle in which the current time is located up to the current time based on the current time, the start time of the target test, the number and duration of time slices included in each test cycle; then, the current execution status determination unit can determine the index of the time slice corresponding to the current time based on the duration of the test cycle in which the current time is located and the duration of the time slices included in each test cycle.
[0075] To elaborate, the current execution status determination unit can first determine the duration of each test cycle based on the number and duration of time slices included in each test cycle. For example, but not limited to, the duration of each test cycle can be the product of the number and duration of time slices included in each test cycle. The current execution status determination unit can then determine the duration of the target test up to the current time based on the start time of the target test. For example, but not limited to, the duration of the target test up to the current time can be the difference between the current time and the start time of the target test. Finally, the current execution status determination unit can determine the duration of the test cycle in which the current time is located up to the current time based on the duration of the target test and the duration of each test cycle. For example, but not limited to, the duration of the test cycle in which the current time is located can be the remainder of the duration of the target test and the duration of each test cycle.
[0076] To determine whether the target test is executing a first-type test or a second-type test at the current time, firstly, the current execution status determination unit can determine the index value corresponding to the determined index based on the index value of each index; then, the current execution status determination unit can determine whether the target test is executing a first-type test or a second-type test at the current time based on the index value corresponding to the determined index.
[0077] According to an exemplary embodiment of this disclosure, when the target test is a time-sliced A / B experiment, the real-time determination of the current execution status of the target A / B experiment at the current time can be abstracted into a mathematical model. For example, if the experiment duration is one day, the experiment cycle is one hour, and the first 30 minutes of each hour in one day are the experimental group and the last 30 minutes are the control group, then the real-time determination of the current execution status of the target A / B experiment at the current time can be expressed as the above formula (2).
[0078] Figure 5 This is a block diagram of an electronic device 500 according to an exemplary embodiment.
[0079] Reference Figure 5The electronic device 500 includes at least one memory 501 and at least one processor 502. The at least one memory 501 stores a set of computer-executable instructions. When the set of computer-executable instructions is executed by the at least one processor 502, the information processing method according to the present disclosure is performed.
[0080] As an example, electronic device 500 may be a PC, tablet, personal digital assistant, smartphone, or other device capable of executing the aforementioned set of instructions. Here, electronic device 500 is not necessarily a single electronic device, but may be a collection of any devices or circuits capable of executing the aforementioned instructions (or instruction sets) individually or in combination. Electronic device 500 may also be part of an integrated control system or system manager, or may be configured to interconnect with a portable electronic device locally or remotely (e.g., via wireless transmission) through an interface.
[0081] In electronic device 500, processor 502 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller, or a microprocessor. By way of example and not limitation, processor may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, etc.
[0082] The processor 502 can execute instructions or code stored in the memory 501, which can also store data. Instructions and data can also be sent and received over a network via a network interface device, which can employ any known transmission protocol.
[0083] The memory 501 may be integrated with the processor 502, for example, by arranging RAM or flash memory within an integrated circuit microprocessor. Alternatively, the memory 501 may include a separate device, such as an external disk drive, a storage array, or other storage device usable by any database system. The memory 501 and the processor 502 may be operatively coupled, or may communicate with each other, for example, via I / O ports, network connections, etc., enabling the processor 502 to read files stored in the memory.
[0084] In addition, electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of electronic device 500 can be interconnected via a bus and / or network.
[0085] According to exemplary embodiments of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, they cause at least one processor to perform an information processing method according to the present disclosure. Examples of computer-readable storage media herein include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disc storage, hard disk drive (HDD), solid-state drive (SSD), card storage (such as multimedia cards, secure digital (SD) cards, or ultra-fast digital (XD) cards), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state drive, and any other device configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and to provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the aforementioned computer-readable storage medium can run in an environment deployed in computer devices such as clients, hosts, agent devices, servers, etc. Furthermore, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system, such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner through one or more processors or computers.
[0086] According to exemplary embodiments of the present disclosure, a computer program product may also be provided, wherein the instructions in the computer program product are executable by a processor of a computer device to perform the information processing method according to the present disclosure.
[0087] According to the information processing method, apparatus, electronic device and storage medium disclosed herein, the time configuration information includes the start time and end time of the target test, the number and duration of time slices included in each test cycle, the index of each time slice and the index value of each index. It can simply and intuitively describe the relevant time information of the target test, making the time configuration information highly readable. Furthermore, it allows for quick and convenient configuration when the time configuration information needs to be configured or modified.
[0088] Furthermore, based on the information processing method, apparatus, electronic device, and storage medium disclosed herein, the current execution status of a target test at the current time can be abstracted into a mathematical model, and the execution status of the target test can be determined by simple calculations using time configuration information.
[0089] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0090] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. An information processing method, characterized in that, include: Obtain the time configuration information of the target test, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices; Based on the time configuration information, execute the target test; The time configuration information includes the start and end times of the target test, the number and duration of time slices in each test cycle, the index of each time slice, and the index value of each index. The target test includes a first type of test and a second type of test. There is at least one first type of test time and / or at least one second type of test time in each test cycle. In one test cycle, there are M consecutive first type of test times or N consecutive second type of test times, where M and N are both integers greater than or equal to 1. The index of each time slice indicates which time slice it is among the multiple time slices. The index value of each index indicates that the time slice corresponding to each index is a first type of test time or a second type of test time. The information processing method further includes: Receive a business request, the business request being used to determine the current execution status of the target test at the current time; In response to the business request, based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle, the index of the time slice corresponding to the current time is determined; Based on the determined index and the index value of each index, it is determined whether the target test is a first type of test or a second type of test at the current time.
2. The information processing method as described in claim 1, characterized in that, The step of determining the index of the time slice corresponding to the current time based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle includes: Based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle, determine the duration that the test cycle in which the current time is located has been executed up to the current time. Based on the duration of the test cycle in which the current time is located, and the duration of the time slices included in each test cycle, the index of the time slice corresponding to the current time is determined.
3. The information processing method as described in claim 2, characterized in that, The determination of the duration of the test cycle to which the current time is located, based on the current time, the start time of the target test, and the number and duration of time slices included in each test cycle, includes: The duration of each test cycle is determined based on the number and duration of time slices included in each test cycle. Based on the start time of the target test, determine the duration during which the target test has been executed up to the current time; Based on the duration of the target test and the duration of each test cycle, determine the duration of the test cycle in which the current time is located up to the current time.
4. The information processing method as described in claim 1, characterized in that, The determination of whether the target test is a first-type test or a second-type test at the current time, based on the determined index and the index value of each index, includes: Based on the index value of each index, determine the index value corresponding to the determined index; Based on the index value corresponding to the determined index, it is determined whether the target test is a first type of test or a second type of test at the current time.
5. An information processing device, characterized in that, include: The information acquisition unit is configured to acquire time configuration information of the target test, wherein the target test includes at least one test cycle, and each test cycle includes multiple time slices; The test execution unit is configured to execute the target test based on the time configuration information; The time configuration information includes the start and end times of the target test, the number and duration of time slices in each test cycle, the index of each time slice, and the index value of each index. The target test includes a first type of test and a second type of test. There is at least one first type of test time and / or at least one second type of test time in each test cycle. In one test cycle, there are M consecutive first type of test times or N consecutive second type of test times, where M and N are both integers greater than or equal to 1. The index of each time slice indicates which time slice it is among the multiple time slices. The index value of each index indicates that the time slice corresponding to each index is a first type of test time or a second type of test time. The information processing device further includes a current execution status determination unit, configured to: receive a service request, the service request being used to determine the current execution status of the target test at the current time; in response to the service request, determine the index of the time slice corresponding to the current time based on the current time, the start time of the target test, the number and duration of time slices included in each test cycle; and determine, based on the determined index and the index value of each index, whether the target test is executing a first type of test or a second type of test at the current time.
6. An electronic device, characterized in that, include: At least one processor; At least one memory that stores computer-executable instructions. Wherein, when the computer-executable instructions are executed by the at least one processor, they cause the at least one processor to perform the information processing method as described in any one of claims 1 to 4.
7. A computer-readable storage medium for storing instructions, characterized in that, When the instruction is executed by at least one processor, it causes the at least one processor to perform the information processing method as described in any one of claims 1 to 4.
8. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by at least one processor, they implement the information processing method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Information processing system, information processing method, and computer program product
US20180276310A1
Method for enhanced schedule management based on rotation pattern and apparatus for the same
US20200104801A1