Task flow prediction method, device, equipment, medium and product for real-time tasks

By using technologies such as pre-trained task traffic prediction models and wavelet basis functions, the problem of non-periodic real-time task traffic prediction is solved and the reliability of the real-time task scheduling system is improved.

CN118277066BActive Publication Date: 2024-09-17CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410685977.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

It is difficult to accurately predict the task flow of non-periodic real-time tasks with the existing technology, resulting in insufficient scheduling reliability of the real-time task scheduling system.

Method used

Using a pre-trained task traffic prediction model, by obtaining historical task traffic data and iteratively adjusting the initial parameter group, using parameters such as wavelet basis functions and connection weights, the accuracy of task traffic prediction is improved.

Benefits of technology

The task traffic prediction accuracy of non-periodic real-time tasks is improved, thereby enhancing the task scheduling reliability of the real-time task scheduling system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277066B
    Figure CN118277066B
Patent Text Reader

Abstract

The present application relates to a task flow prediction method, device, equipment, medium and product for real-time tasks. It includes: obtaining historical task flow data in a real-time task scheduling system; inputting the historical task flow data into a pre-trained task flow prediction model to obtain a task flow prediction result; wherein the initial parameter group in the task flow prediction model includes the connection weights between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer; wherein the task flow prediction model is trained in the following manner: iterating the original parameter group to obtain the initial parameter group, and using the initial parameter group as the initial parameter group of the task flow prediction model to be trained; adjusting the initial parameter group according to the sample flow data of different sample real-time tasks and the corresponding task flow labels. This method can improve the reliability of task scheduling in a real-time task scheduling system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment, medium and product for predicting task flow of real-time tasks. Background Art

[0002] With the rapid development of computer technology, the load on real-time task scheduling systems continues to increase. At present, real-time task scheduling systems perform real-time analysis on real-time tasks and schedule tasks based on the real-time analysis results. The reliability of task scheduling has become an important factor affecting the reliability of the entire real-time task scheduling system.

[0003] Real-time tasks can be divided into periodic real-time tasks and non-periodic real-time tasks according to whether they are periodic. The task flow of periodic real-time tasks is a known parameter, while the task flow of non-periodic real-time tasks is an unknown parameter. Usually, the real-time task scheduling system can analyze the task flow based on the task scheduling algorithm to complete the task scheduling. Therefore, the premise for reliable scheduling of non-periodic real-time tasks is to predict their task flow. Summary of the invention

[0004] Based on this, it is necessary to provide a task flow prediction method, device, equipment, medium and product for real-time tasks to address the above technical problems, which can accurately predict the task flow of non-periodic real-time tasks, thereby improving the reliability of corresponding task scheduling.

[0005] In a first aspect, the present application provides a method for predicting task flow of a real-time task, comprising:

[0006] Obtain historical task flow data in the real-time task scheduling system;

[0007] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer;

[0008] Among them, the task flow prediction model is trained in the following way:

[0009] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0010] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0011] In one of the embodiments, for any iterative process, the initial parameter group of the iterative process is determined in the following manner: the initial parameter group determined by the previous iterative process is used as the current parameter to be adjusted; the first prediction result output by the task flow prediction model trained by the previous iterative process is obtained; wherein the first prediction result is obtained by predicting the sample flow data used in the previous iterative process based on the task flow prediction model trained by the previous iterative process; the initial parameter group of the task flow prediction model trained by the previous iterative process includes the current parameter to be adjusted; within the preset initial parameter group range, at least one adjacent parameter group of the current parameter to be adjusted is obtained; the second prediction result output by the task flow prediction model trained by the current iterative process is obtained; wherein the second prediction result is obtained by predicting the sample flow data used in the current iterative process based on the task flow prediction model trained by the current iterative process; the initial parameter group of the task flow prediction model trained by the current iterative process includes at least one adjacent parameter group; based on the first prediction result, the second prediction result and the corresponding task flow label, the initial parameter group of the current iterative process is selected from at least one adjacent parameter group.

[0012] In one embodiment, based on the first prediction result, the second prediction result and the corresponding task traffic label, an initial parameter group for this iteration process is selected from at least one adjacent parameter group, including: obtaining a reference parameter group corresponding to at least one adjacent parameter group, and the number of groups of at least one adjacent parameter group; obtaining a third prediction result output by the task traffic prediction model trained in this iteration process; wherein the third prediction result is obtained by predicting the sample traffic data used in this iteration process based on the task traffic prediction model trained in this iteration process; the initial parameter group of the task traffic prediction model trained in this iteration process includes a reference parameter group; based on the first prediction result, the second prediction result, the third prediction result and the corresponding task traffic label, as well as the number of groups, an initial parameter group for this iteration process is selected from at least one adjacent parameter group.

[0013] In one of the embodiments, based on the first prediction result, the second prediction result, the third prediction result and the corresponding task traffic label, and the number of groups, an initial parameter group for this iterative process is selected from at least one adjacent parameter group, including: obtaining a first difference between the first prediction result and the corresponding task traffic label, a second difference between the second prediction result and the corresponding task traffic label, and a third difference between the third prediction result and the corresponding task traffic label; determining a first parameter influencing factor for this iterative process based on the first difference and the third difference; determining a second parameter influencing factor for this iterative process based on the number of groups; and selecting an initial parameter group for this iterative process from at least one adjacent parameter group based on the first parameter influencing factor, the second parameter influencing factor, and the second difference.

[0014] In one embodiment, an initial parameter group for this iterative process is selected from at least one neighboring parameter group based on a first parameter influence factor, a second parameter influence factor and a second difference, including: when the first parameter influence factor is greater than the second parameter influence factor, a target neighboring parameter group is selected from at least one neighboring parameter group as the initial parameter group for this iterative process based on second differences corresponding to different neighboring parameter groups; wherein the first parameter influence factor is a ratio of the first difference to the third difference; the second parameter influence factor is a product of the number of groups and a preset congestion degree; the first distance between the target neighboring parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference corresponding to the target neighboring parameter group is smaller than the first difference.

[0015] In one of the embodiments, based on the second differences corresponding to different neighboring parameter groups, a target neighboring parameter group is selected from at least one neighboring parameter group as the initial parameter group for this iterative process, including: using the neighboring parameter group with the smallest difference among the second differences corresponding to different neighboring parameter groups as the initial parameter group for this iterative process.

[0016] In a second aspect, the present application also provides a task flow prediction device for a real-time task, comprising:

[0017] A historical data acquisition module is used to obtain historical task flow data in the real-time task scheduling system;

[0018] The prediction result determination module is used to input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result;

[0019] The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer;

[0020] Among them, the task flow prediction model is trained in the following way:

[0021] An initial parameter determination module is used to iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task flow prediction model to be trained;

[0022] The network parameter adjustment module is used to adjust the initial parameter group according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0023] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0024] Obtain historical task flow data in the real-time task scheduling system;

[0025] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer;

[0026] Among them, the task flow prediction model is trained in the following way:

[0027] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0028] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0030] Obtain historical task flow data in the real-time task scheduling system;

[0031] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer;

[0032] Among them, the task flow prediction model is trained in the following way:

[0033] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0034] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0035] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0036] Obtain historical task flow data in the real-time task scheduling system;

[0037] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer;

[0038] Among them, the task flow prediction model is trained in the following way:

[0039] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0040] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0041] The task flow prediction method, device, equipment, medium and product of the above-mentioned real-time task process the historical task flow data in the real-time task scheduling system based on the pre-trained task flow prediction model to obtain the task flow prediction result. Since the initial parameter group used in the process of training the task flow prediction model is obtained after iteration based on the original parameter group, the task flow prediction accuracy of the task flow prediction model using the initial parameter group is relatively high, thereby making the task flow prediction accuracy of the trained task flow prediction model higher. In addition, since the initial parameter group not only includes the scaling factor and translation factor of the hidden layer itself in the task flow prediction model, but also includes the connection weight between the hidden layer and the input layer, the process of adjusting the initial parameter group can adjust the network parameters of multiple dimensions in the task flow prediction model, and the adjustment range is large, which can achieve better model training effect. Furthermore, accurate prediction of the task flow prediction result can assist in completing the scheduling of subsequent real-time tasks, thereby improving the task scheduling reliability of the real-time task scheduling system. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 An application environment diagram of a task flow prediction method for a real-time task provided in this embodiment;

[0044] Figure 2A flowchart of a task flow prediction method for a real-time task provided in this embodiment;

[0045] Figure 3 A schematic diagram of a process for selecting an initial parameter group provided in this embodiment;

[0046] Figure 4 A schematic diagram of another process of selecting an initial parameter group provided in this embodiment;

[0047] Figure 5 A flowchart of another method for predicting task flow of real-time tasks provided in this embodiment;

[0048] Figure 6 A structural block diagram of a task flow prediction device for a real-time task provided in this embodiment;

[0049] Figure 7 This is a diagram of the internal structure of a computer device provided in this embodiment. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0051] Before introducing the embodiments of the present application, it should be noted that, at present, technicians have proposed many real-time task scheduling methods, and these real-time task scheduling methods can enhance the real-time scheduling capability of the system. However, the premise that these methods can work is that the task flow of non-periodic real-time tasks on the system is known, or the priority of non-periodic real-time tasks is known. However, there are still a large number of sudden and sporadic real-time tasks in the real-time task scheduling system, such as the real-time task scheduling system of aviation equipment, and the effects of these methods are not significant for sporadic non-periodic real-time tasks whose real-time task flow cannot be predicted. Therefore, the key to improving the success rate of non-periodic real-time task execution is to be able to predict its task flow. When knowing its task flow, the above-mentioned real-time task scheduling method is used to perform task scheduling, which can improve the scheduling reliability of non-periodic real-time tasks.

[0052] The task flow prediction method for real-time tasks provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the real-time task scheduling system 104 through the network. Specifically, the real-time task scheduling system 104 can obtain the historical task flow data in the real-time task scheduling system; the real-time task scheduling system 104 inputs the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result, and outputs the task flow prediction result to the terminal 102; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer; wherein the task flow prediction model is trained in the following manner: iterate the original parameter group to obtain the initial parameter group, and use the initial parameter group as the initial parameter group of the task flow prediction model to be trained; adjust the initial parameter group according to the sample flow data of different sample real-time tasks and the corresponding task flow labels.

[0053] In one embodiment, Figure 2 As shown, a task flow prediction method for real-time tasks is provided, and the method is applied to Figure 1 The real-time task scheduling system 104 in the example is used for explanation, and includes the following steps:

[0054] S201, obtaining historical task flow data in a real-time task scheduling system.

[0055] The historical task traffic data may be traffic data corresponding to the historical real-time tasks, and the historical real-time tasks may be periodic real-time tasks or non-periodic real-time tasks, and there is no limitation on this.

[0056] Exemplarily, historical task flow data can be stored in a preset database of the real-time task scheduling system. When there is a task flow prediction requirement, the real-time task scheduling system can directly extract the historical scheduling data from the preset database. It is understandable that historical task flow data can also be stored in other servers, and there is a connection relationship between the server and the real-time task scheduling system. When there is a task flow prediction requirement, the real-time task scheduling system can obtain historical scheduling data from the server.

[0057] Optionally, this embodiment can obtain historical task flow data from all historical real-time tasks based on parameters such as the type of real-time tasks and the number of real-time tasks. For example, the task flow data corresponding to the historical real-time tasks within a preset time period before the current moment can be used as the historical task flow data. It is also possible to set a preset number of historical real-time tasks, randomly select a preset number of historical real-time tasks from all historical real-time tasks, and use the corresponding task flow data as the historical task flow data. Among them, the preset number and the preset time period can be determined based on manual experience or through a large number of experiments, and there is no limitation on this.

[0058] S202, inputting historical task flow data into a pre-trained task flow prediction model to obtain a task flow prediction result.

[0059] Among them, the task flow prediction result can be used as flow reference data for real-time tasks that may occur after the current moment. It can be understood that, ideally, the task flow prediction result can represent the task flow data of real-time tasks that may occur after the current moment.

[0060] Specifically, in this embodiment, the historical task flow data is input into a pre-trained task flow prediction model. The pre-trained task flow prediction model can process the historical task flow data and output a task flow prediction result.

[0061] It is understandable that the focus of the embodiment of the present application is on how the task flow prediction model is trained. Further, the task flow prediction model is introduced in detail: the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer.

[0062] Exemplarily, the task flow prediction model may be a wavelet neural network model. Since the wavelet neural network is a relatively common neural network model in the art, the model structure of the wavelet neural network will not be described in detail here.

[0063] It should be noted that the model parameters included in the task flow prediction model are not limited to connection weights, scaling factors, and translation factors. In the process of training the task flow prediction model in the embodiment of the present application, the training purpose is to adjust the connection weights, scaling factors, and translation factors in the task flow prediction model to improve the task flow prediction accuracy of the task flow prediction model. Specifically, the task flow prediction model is trained in the following manner:

[0064] S2021, iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained.

[0065] The original parameter group may be a randomly determined network parameter; the initial parameter group may be an initial parameter group used to train the task traffic prediction model. Both the original parameter group and the initial parameter group are composed of connection weights, scaling factors, and translation factors in the task traffic prediction model. Exemplarily, the original parameter group and the initial parameter group may be represented in vector form, such as (a, b, c), which is not limited.

[0066] Exemplarily, the value ranges of the connection weight, the scaling factor, and the translation factor can be determined respectively, and based on the value ranges of the three, the value range of the network parameter can be determined. In this embodiment, one can be randomly selected from the value range as the original parameter group, and in the process of determining the initial parameter group, it is also necessary to ensure that it is within the value range. The process of iterating the original parameter group to obtain the initial parameter group is described in detail in the following embodiment. Among them, the value ranges of the connection weight, the scaling factor, and the translation factor can be determined based on manual experience or through a large number of experiments, and there is no limitation on this.

[0067] It is understandable that the task flow prediction accuracy of the task flow prediction model using the initial parameter group is higher than that of the task flow prediction model using the original parameter group. In the process of training the model, the traditional technology usually randomly determines an initial parameter group for training, and the embodiment of the present application introduces a new method for determining the initial parameter group, which can make the training process of the task flow prediction model to be trained more rigorous and improve the task flow prediction accuracy of the model from the initial stage of training.

[0068] S2022, adjusting the initial parameter group according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0069] Among them, for any sample real-time task, its corresponding sample traffic data can be the task traffic data of the historical real-time task before the sample real-time task, and the corresponding task traffic label can be the actual task traffic of the sample real-time task.

[0070] Specifically, in this embodiment, the sample traffic data of different sample real-time tasks can be input into the task traffic prediction model to be trained to obtain the prediction results corresponding to the different sample real-time tasks, and then for any sample real-time task, the task traffic prediction result of the task traffic prediction model to be scheduled is judged based on the gap between its prediction result and the corresponding task traffic label to determine whether it is accurate, that is, to determine the accuracy of the initial parameter group. When the accuracy of the initial parameter group does not meet the standard, the initial parameter group is adjusted, and the adjusted parameter group is used as the new initial parameter group, and the operation of S2021 is returned to execute until the accuracy of the task traffic prediction model meets the standard, or the number of training times reaches the preset upper limit. Among them, the network parameters of the task traffic prediction model to be trained are the initial parameter group; the standard accuracy and the preset upper limit of the task traffic prediction model can be determined based on manual experience, or can be determined through a large number of experiments, and there is no limitation on this.

[0071] In the task flow prediction method of the above-mentioned real-time task, based on the pre-trained task flow prediction model, the historical task flow data in the real-time task scheduling system is processed to obtain the task flow prediction result. Since the initial parameter group used in the process of training the task flow prediction model is obtained after iteration based on the original parameter group, the task flow prediction accuracy of the task flow prediction model using the initial parameter group is relatively high, thereby making the task flow prediction accuracy of the trained task flow prediction model higher. In addition, since the initial parameter group not only includes the scaling factor and translation factor of the hidden layer itself in the task flow prediction model, but also includes the connection weights between the hidden layer and the input layer, the process of adjusting the initial parameter group can adjust the network parameters of multiple dimensions in the task flow prediction model, and the adjustment range is large, which can achieve better model training effect. Furthermore, accurate prediction of the task flow prediction result can assist in completing the scheduling of subsequent real-time tasks, thereby improving the task scheduling reliability of the real-time task scheduling system.

[0072] Based on the above embodiments, the accuracy of the task flow prediction result is determined by the accuracy of the model parameters of the task flow prediction model. In one embodiment, the iterative determination process of the initial parameter group is described in detail. Figure 3 As shown, for any iterative process, the initial parameter group of the iterative process can be determined in the following manner:

[0073] S301: Use the initial parameter group determined in the previous iteration process as the current parameters to be adjusted.

[0074] Wherein, when the current iteration process is the first iteration process, the initial parameter group determined by the corresponding previous iteration process is the original parameter group. The current parameter to be adjusted is the initial parameter group to be adjusted in this iteration process.

[0075] Exemplarily, if the current iteration is the first iteration, the corresponding current parameter to be adjusted is the original parameter group. If the current iteration is the second iteration, the corresponding current parameter to be adjusted is the initial parameter group determined by the first iteration. For example, if the original parameter group is (3, 4, 5), the current parameter to be adjusted in the first iteration process is (3, 4, 5). If the initial parameter group determined in the first iteration process is (4, 5, 6), the current parameter to be adjusted in the second iteration process is (4, 5, 6).

[0076] S302, obtaining a first prediction result output by the task flow prediction model trained in the previous iteration process.

[0077] Among them, the first prediction result is obtained by predicting the sample flow data used in the previous iteration process based on the task flow prediction model trained in the previous iteration process; the initial parameter group of the task flow prediction model trained in the previous iteration process includes the current parameters to be adjusted.

[0078] Exemplarily, in this embodiment, the first prediction result may be determined in the previous iteration process and stored in a preset database. In this embodiment, the first prediction result may be directly obtained from the preset database. Specifically, the process of determining the first prediction result may be as follows: randomly select one or more sample flow data from different sample flow data, input the data into the task flow prediction model using the initial parameter group determined in the previous iteration process, and obtain the first prediction result.

[0079] S303: Obtain at least one adjacent parameter group of the current parameter to be adjusted within a preset initial parameter group range.

[0080] The adjacent parameter group may be a parameter group within the preset initial parameter group range that is closer to the current parameter to be adjusted.

[0081] Exemplarily, in this embodiment, each parameter group within the range of the supplementary parameter group can be regarded as a position point, and all parameter groups within a certain distance around the current parameter to be adjusted can be regarded as at least one neighboring parameter group of the current parameter to be adjusted. For example, all parameter groups in a circle formed by taking the current parameter to be adjusted as the center and the first distance threshold as the radius can be regarded as at least one neighboring parameter group of the current parameter to be adjusted. Alternatively, different distance thresholds may be corresponding to different orientations, that is, the neighboring parameter group is not necessarily a parameter group in a circle formed by taking the current parameter to be adjusted as the center and the first distance threshold as the radius, and its distribution range may be random.

[0082] S304, obtaining a second prediction result output by the task flow prediction model trained in this iteration process.

[0083] Among them, the second prediction result is obtained by predicting the sample traffic data used in this iteration process based on the task traffic prediction model trained in this iteration process; the initial parameter group of the task traffic prediction model trained in this iteration process includes at least one adjacent parameter group.

[0084] Specifically, in this embodiment, the process of determining the second prediction result is the same as the method of determining the first prediction result in S302, the difference being that the network parameters used by the task traffic prediction model are different, which will not be described in detail here.

[0085] It can be understood that different neighboring parameter groups correspond to different task flow prediction models, and the number of the second prediction results in this embodiment is the same as the number of neighboring parameter groups.

[0086] S305 , selecting an initial parameter group for this iteration process from at least one adjacent parameter group according to the first prediction result, the second prediction result and the corresponding task traffic label.

[0087] Among them, if the sample real-time tasks used when determining the first prediction result and the second prediction result are the same, the number of corresponding task traffic labels is one; if the sample real-time tasks used when determining the second prediction result and the second prediction result are different, the corresponding task traffic labels are the task traffic labels corresponding to each sample real-time task.

[0088] Exemplarily, in this embodiment, the first prediction result, the second prediction result, the task traffic label corresponding to each sample real-time task and at least one adjacent parameter group can be input into a pre-trained initial parameter group selection module to obtain the initial parameter group for this iterative process.

[0089] Exemplarily, in this embodiment, the first difference between the first prediction result and the corresponding task flow label, and the second difference between each second prediction result and the corresponding task flow label can be determined, and each neighboring parameter group corresponding to the second prediction result whose second difference is less than the first difference is used as a candidate parameter group. In the case where the candidate parameter group is not unique, one is randomly selected as the initial parameter group for this iteration process. The neighboring parameter group with the smallest difference among the second differences corresponding to different neighboring parameter groups can also be used as the initial parameter group for this iteration process to maximize the accuracy of the initial parameter group for this iteration process.

[0090] In the above embodiment, a specific method for determining the initial parameter group corresponding to each iterative process is provided, so that the training process of the task flow prediction model is more rigorous and rich.

[0091] On the basis of the above embodiments, in order to further enrich the process of selecting the initial parameter group of this iteration process, in one embodiment, a method of selecting the initial parameter group of this iteration process is also provided, such as Figure 4 As shown, it includes the following steps:

[0092] S401, obtaining a reference parameter group corresponding to at least one adjacent parameter group and the number of at least one adjacent parameter group.

[0093] The reference parameter group may be the center position corresponding to each neighboring parameter group, and may be, for example, the cluster center. The reference parameter group may also be a relatively accurate neighboring parameter group corresponding to, for example, the most accurate second prediction result. If at least one neighboring parameter group is unique in number, the neighboring parameter group may be directly used as the reference parameter group.

[0094] It should be noted that the method for determining the cluster center may be a conventional method, which will not be described in detail here. In this embodiment, at least one neighboring parameter group may be counted to determine the number of at least one neighboring parameter group.

[0095] S402, obtaining a third prediction result output by the task flow prediction model trained in this iteration process.

[0096] Among them, the third prediction result is obtained by predicting the sample traffic data used in this iteration process based on the task traffic prediction model trained in this iteration process; the initial parameter group of the task traffic prediction model trained in this iteration process includes a reference parameter group.

[0097] Specifically, in this embodiment, the process of determining the third prediction result is the same as the method of determining the first prediction result in S302. The difference is that the network parameters adopted by the task traffic prediction model are different. Exemplarily, the network parameters adopted by the task traffic prediction model corresponding to the first prediction result are the initial parameter group; the network parameters adopted by the task traffic prediction model corresponding to the second prediction result are the adjacent parameter groups; the network parameters adopted by the task traffic prediction model corresponding to the third prediction result are the reference parameter group.

[0098] S403: Select an initial parameter group for this iteration process from at least one adjacent parameter group according to the first prediction result, the second prediction result, the third prediction result, the corresponding task flow label, and the number of groups.

[0099] Exemplarily, in this embodiment, the first prediction result, the second prediction result, the third prediction result and the corresponding task traffic label, as well as the number of groups and each adjacent parameter group can be input into a pre-trained parameter group selection model to obtain the initial parameter group for this iterative process.

[0100] Furthermore, in order to make the process of selecting the initial parameter group for this iterative process more rigorous and further improve the accuracy of the initial parameter group for this iterative process, it is also possible to obtain a first difference between the first prediction result and the corresponding task traffic label, a second difference between the second prediction result and the corresponding task traffic label, and a third difference between the third prediction result and the corresponding task traffic label; determine the first parameter influence factor of this iterative process based on the first difference and the third difference; determine the second parameter influence factor of this iterative process based on the number of groups; select the initial parameter group for this iterative process from at least one adjacent parameter group based on the first parameter influence factor, the second parameter influence factor and the second difference.

[0101] The first difference is used to characterize the prediction accuracy of the first prediction result; the second difference is used to characterize the prediction accuracy of each second prediction result corresponding to each adjacent parameter group; the third difference is used to characterize the prediction accuracy of the reference third prediction result. The first parameter influencing factor can be the ratio of the first difference to the third difference; the second parameter influencing factor is the product of the number of groups and the preset congestion degree.

[0102] In an optional implementation, the first parameter influencing factor, the second parameter influencing factor, the second difference and at least one adjacent parameter group may be input into a pre-trained parameter group selection model to obtain an initial parameter group for this iteration process.

[0103] In another optional implementation, when the first parameter influence factor is greater than the second parameter influence factor, a target neighboring parameter group can be selected from at least one neighboring parameter group as the initial parameter group for this iteration process according to the second difference values ​​corresponding to different neighboring parameter groups; wherein the first distance between the target neighboring parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference value corresponding to the target neighboring parameter group is smaller than the first difference. The first distance between the target neighboring parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference value corresponding to the target neighboring parameter group is smaller than the first difference.

[0104] Exemplarily, after determining the first parameter influence factor and the second parameter influence factor, the magnitudes of the first parameter influence factor and the second parameter influence factor may be compared, for example, based on the following formula:

[0105] ;

[0106] In the formula, represents the first parameter influencing factor; Indicates the second parameter influencing factor; Y i is the first difference, i.e., the task flow prediction accuracy corresponding to the initial parameter group determined in the previous iteration process; Y c is the third difference, i.e., the task flow prediction accuracy corresponding to the reference parameter group; n f is the number of adjacent parameter groups; The preset congestion level.

[0107] When the first parameter influence factor is greater than the second parameter influence factor, the neighboring parameter group with the smaller second difference, for example, the smallest one, is used as the target neighboring parameter group and is used as the initial parameter group of this iteration process.

[0108] Exemplarily, when the first parameter influence factor is greater than the second parameter influence factor, each neighboring parameter group whose corresponding second difference is greater than a preset difference threshold can be taken as a candidate parameter group, and any one of the candidate parameter groups whose first distance from the reference parameter group is less than the second distance between the current parameter to be adjusted and the reference parameter group can be taken as the target neighboring parameter group.

[0109] In order to facilitate the understanding of this scheme by those skilled in the art, Figure 5 As shown, the task flow prediction method for real-time tasks provided in the embodiment of the present application is described in detail, including the following steps:

[0110] S501: Use the initial parameter group determined in the previous iteration process as the current parameters to be adjusted.

[0111] S502, obtaining a first prediction result output by the task flow prediction model trained in the previous iteration process.

[0112] Among them, the first prediction result is obtained by predicting the sample flow data used in the previous iteration process based on the task flow prediction model trained in the previous iteration process; the initial parameter group of the task flow prediction model trained in the previous iteration process includes the current parameters to be adjusted.

[0113] S503: Obtain at least one adjacent parameter group of the current parameter to be adjusted within a preset initial parameter group range.

[0114] S504, obtaining a second prediction result output by the task flow prediction model trained in this iteration process.

[0115] Among them, the second prediction result is obtained by predicting the sample traffic data used in this iteration process based on the task traffic prediction model trained in this iteration process; the initial parameter group of the task traffic prediction model trained in this iteration process includes at least one adjacent parameter group.

[0116] S505: Obtain a reference parameter group corresponding to at least one adjacent parameter group and the number of at least one adjacent parameter group.

[0117] S506, obtaining a third prediction result output by the task flow prediction model trained in this iteration process.

[0118] Among them, the third prediction result is obtained by predicting the sample traffic data used in this iteration process based on the task traffic prediction model trained in this iteration process; the initial parameter group of the task traffic prediction model trained in this iteration process includes a reference parameter group.

[0119] S507, obtaining a first difference between the first prediction result and the corresponding task traffic label, a second difference between the second prediction result and the corresponding task traffic label, and a third difference between the third prediction result and the corresponding task traffic label.

[0120] S508: Determine a first parameter influencing factor of this iteration process according to the first difference and the third difference.

[0121] S509: Determine the second parameter influencing factor of this iteration process according to the number of groups.

[0122] S510, when the first parameter influence factor is greater than the second parameter influence factor, according to the second difference values ​​corresponding to different neighboring parameter groups, select a target neighboring parameter group from at least one neighboring parameter group as an initial parameter group for this iteration process.

[0123] Among them, the first parameter influence factor is the ratio of the first difference to the third difference; the second parameter influence factor is the product of the number of groups and the preset congestion; the first distance between the target adjacent parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference corresponding to the target adjacent parameter group is smaller than the first difference.

[0124] S511, performing model training on the task flow prediction model to be trained based on the initial parameter group of this iteration process, and obtaining the trained task flow prediction model when the iteration termination condition is met.

[0125] S512, obtaining historical task flow data in the real-time task scheduling system.

[0126] S513, inputting the historical task flow data into a pre-trained task flow prediction model to obtain a task flow prediction result.

[0127] Specifically, taking the artificial fish swarm algorithm as an example, the process of training the task flow prediction model in the embodiment of the present application is described in detail, which may include the following parts:

[0128] (1) Initialization of artificial fish swarm: Assume that each fish in the artificial fish swarm is a random one-dimensional array within a given range. Assume that the number of fish in the artificial fish swarm is N, and set the three network parameters to be optimized (i.e., connection weight, scaling factor, and translation factor) in the wavelet neural network model (i.e., the task flow prediction model in this embodiment) to x, y, and z, whose ranges are [x1, x2], [y1, y2], and [z1, z2], respectively, to generate an initial artificial fish swarm with 3 rows and N columns, and the values ​​in each column are the three parameters to be optimized (i.e., the current parameters to be adjusted) of an artificial fish.

[0129] (2) Grouping behavior of artificial fish: Grouping behavior is similar to that of real fish, which tend to move toward the center of a school where they have found food, but at the same time do not want to have too many fellow fish gather near the food, which would cause competition for food. Suppose the current position state of an artificial fish is , search for the number of artificial fish companions within a certain range of the artificial fish (i.e., the number of adjacent parameter groups) and the center position of the artificial fish school (i.e. reference parameter group), let is the crowding degree of the fish school, if , indicating that there is sufficient food in the center of the companion fish school and the number of companions is small so there will not be too much competition for food. The artificial fish will move forward one step toward the center of the companions and use the position after the move as the initial state of the artificial fish. It will continue to determine whether it can move forward one step. If it cannot move forward or the number of iterations reaches the preset threshold, it will stop the iteration and use the parameters corresponding to the current position of the artificial fish as the initial parameter group of this iteration process. Otherwise, it will perform foraging behavior.

[0130] (3) Tail-chasing behavior of artificial fish schools: Tail-chasing behavior is similar to the behavior of real fish, which tend to move toward the location of a companion that has found food, but do not want too many fish to gather near the companion to compete for food. The process of choosing the next step is similar to the grouping behavior, so it will not be elaborated here.

[0131] It is understandable that after initialization, one of the artificial fish school's flocking behavior or the artificial fish school's tail-chasing behavior can be selected to be executed, or both can be executed, and the parameters corresponding to the artificial fish school with higher accuracy can be used as the initial parameter group corresponding to the current iteration process.

[0132] (4) Foraging behavior of artificial fish: This behavior is similar to the tendency of real fish to go to waters with abundant food to find food. Suppose the current position state of an artificial fish (i.e., the current parameter to be adjusted) is , randomly selects one within its perception range (i.e., neighboring parameter group) ,like The corresponding accuracy (i.e. the second difference) is greater than The corresponding accuracy (i.e. the first difference), then the artificial fish moves One step forward in the direction; if The corresponding accuracy No more than The corresponding accuracy , then randomly select the state within its perception range , re-determine whether the forward condition is met until the artificial fish moves forward, and if it cannot move forward or the number of iterations reaches a preset threshold, stop the iteration and use the parameters corresponding to the current position of the artificial fish as the initial parameter group of this iteration process.

[0133] It is understandable that, in the process of determining the initial parameter group based on the artificial fish swarm algorithm, it can be executed based on the above steps, or at least one of the above operation behaviors can be selected and executed in a different order, and there is no limitation on this.

[0134] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0135] Based on the same inventive concept, the embodiment of the present application also provides a task flow prediction device for real-time tasks for implementing the task flow prediction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiment of the task flow prediction device for one or more real-time tasks provided below can refer to the limitations of the task flow prediction method above, and will not be repeated here.

[0136] In one embodiment, Figure 6 As shown, a task flow prediction device for a real-time task is provided, comprising: a historical data acquisition module 610, a prediction result determination module 620, an initial parameter determination module 630 and a network parameter adjustment module 640, wherein:

[0137] The historical data acquisition module 610 is used to acquire historical task flow data in the real-time task scheduling system.

[0138] The prediction result determination module 620 is used to input the historical task flow data into a pre-trained task flow prediction model to obtain the task flow prediction result.

[0139] The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes the connection weight between the input layer and the hidden layer, and the scaling factor and translation factor of the wavelet basis function used in the hidden layer.

[0140] Among them, the task flow prediction model is trained in the following way:

[0141] The initial parameter determination module 630 is used to iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task flow prediction model to be trained.

[0142] The network parameter adjustment module 640 is used to adjust the initial parameter group according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0143] In one embodiment, the initial parameter determination module includes a first determination unit, which is used to use the initial parameter group determined in the previous iteration process as the current parameter to be adjusted; a first acquisition unit, which is used to obtain the first prediction result output by the task flow prediction model trained in the previous iteration process; wherein the first prediction result is obtained by predicting the sample flow data used in the previous iteration process based on the task flow prediction model trained in the previous iteration process; the initial parameter group of the task flow prediction model trained in the previous iteration process includes the current parameter to be adjusted; a second acquisition unit, which is used to obtain at least one adjacent parameter group of the current parameter to be adjusted within the preset initial parameter group range; a third acquisition unit, which is used to obtain the second prediction result output by the task flow prediction model trained in this iteration process; wherein the second prediction result is obtained by predicting the sample flow data used in this iteration process based on the task flow prediction model trained in this iteration process; the initial parameter group of the task flow prediction model trained in this iteration process includes at least one adjacent parameter group; and a second determination unit, which is used to select the initial parameter group of this iteration process from at least one adjacent parameter group based on the first prediction result, the second prediction result and the corresponding task flow label.

[0144] In one embodiment, the second determination unit includes a first acquisition subunit, which is used to obtain a reference parameter group corresponding to at least one neighboring parameter group, and the number of groups of at least one neighboring parameter group; the second acquisition subunit is used to obtain a third prediction result output by the task traffic prediction model trained in this iteration process; wherein the third prediction result is based on the task traffic prediction model trained in this iteration process, and the sample traffic data used in this iteration process is predicted; the initial parameter group of the task traffic prediction model trained in this iteration process includes a reference parameter group; the first determination subunit is used to select the initial parameter group for this iteration process from at least one neighboring parameter group based on the first prediction result, the second prediction result, the third prediction result and the corresponding task traffic label, as well as the number of groups.

[0145] In one embodiment, the first determination subunit is specifically used to obtain a first difference between a first prediction result and a corresponding task traffic label, a second difference between a second prediction result and a corresponding task traffic label, and a third difference between a third prediction result and a corresponding task traffic label; determine a first parameter influence factor of this iterative process based on the first difference and the third difference; determine a second parameter influence factor of this iterative process based on the number of groups; select an initial parameter group for this iterative process from at least one adjacent parameter group based on the first parameter influence factor, the second parameter influence factor and the second difference.

[0146] In one embodiment, the first determination subunit is specifically used to select a target neighboring parameter group as the initial parameter group for this iterative process from at least one neighboring parameter group according to the second difference corresponding to different neighboring parameter groups when the first parameter influence factor is greater than the second parameter influence factor; wherein the first parameter influence factor is the ratio of the first difference to the third difference; the second parameter influence factor is the product of the number of groups and the preset congestion; the first distance between the target neighboring parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference corresponding to the target neighboring parameter group is smaller than the first difference.

[0147] In one embodiment, the first determining subunit is specifically configured to use the neighboring parameter group with the smallest difference among the second differences corresponding to different neighboring parameter groups as the initial parameter group for this iteration process.

[0148] Each module in the task flow prediction device for the above-mentioned real-time task can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0149] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a task flow prediction method is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0150] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0152] Obtain historical task flow data in the real-time task scheduling system;

[0153] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result;

[0154] The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer;

[0155] Among them, the task flow prediction model is trained in the following way:

[0156] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0157] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0158] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0159] Obtain historical task flow data in the real-time task scheduling system;

[0160] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result;

[0161] The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer;

[0162] Among them, the task flow prediction model is trained in the following way:

[0163] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0164] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0165] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0166] Obtain historical task flow data in the real-time task scheduling system;

[0167] Input the historical task flow data into the pre-trained task flow prediction model to obtain the task flow prediction result;

[0168] The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer;

[0169] Among them, the task flow prediction model is trained in the following way:

[0170] Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task traffic prediction model to be trained;

[0171] The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

[0172] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0173] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0174] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A task flow prediction method for real-time tasks, characterized in that: The method comprises: Obtain historical task flow data in the real-time task scheduling system; Input the historical task flow data into a pre-trained task flow prediction model to obtain a task flow prediction result; wherein the task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer; The task flow prediction model is trained in the following way: Iterate the original parameter group to obtain an initial parameter group, and use the initial parameter group as the initial parameter group of the task flow prediction model to be trained; For any iterative process, the initial parameter set of the iterative process is determined in the following way: The initial parameter group determined in the previous iteration process is used as the current parameter to be adjusted; the first prediction result output by the task flow prediction model trained in the previous iteration process is obtained; wherein the first prediction result is obtained by predicting the sample flow data used in the previous iteration process based on the task flow prediction model trained in the previous iteration process; the initial parameter group of the task flow prediction model trained in the previous iteration process includes the current parameter to be adjusted; Within the preset initial parameter group range, obtain at least one adjacent parameter group of the current parameter to be adjusted; obtain a second prediction result output by the task flow prediction model trained in this iteration process; wherein the second prediction result is obtained by predicting the sample flow data used in this iteration process based on the task flow prediction model trained in this iteration process; the initial parameter group of the task flow prediction model trained in this iteration process includes at least one of the adjacent parameter groups; Obtain a reference parameter group corresponding to the at least one adjacent parameter group, and the number of the at least one adjacent parameter group; obtain a third prediction result output by the task flow prediction model trained in this iteration process; wherein the third prediction result is obtained by predicting the sample flow data used in this iteration process based on the task flow prediction model trained in this iteration process; the initial parameter group of the task flow prediction model trained in this iteration process includes the reference parameter group; Obtain a first difference between the first prediction result and the corresponding task flow label, a second difference between the second prediction result and the corresponding task flow label, and a third difference between the third prediction result and the corresponding task flow label; determine a first parameter influencing factor of this iteration process according to the first difference and the third difference; determine a second parameter influencing factor of this iteration process according to the number of groups; select an initial parameter group for this iteration process from the at least one adjacent parameter group according to the first parameter influencing factor, the second parameter influencing factor and the second difference; The initial parameter group is adjusted according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

2. The method according to claim 1, characterized in that The selecting an initial parameter group for this iteration process from the at least one adjacent parameter group according to the first parameter influence factor, the second parameter influence factor and the second difference includes: When the first parameter influence factor is greater than the second parameter influence factor, selecting a target neighboring parameter group from the at least one neighboring parameter group as an initial parameter group for this iteration process according to second differences corresponding to different neighboring parameter groups; Among them, the first parameter influence factor is the ratio of the first difference to the third difference; the second parameter influence factor is the product of the number of groups and the preset congestion; the first distance between the target adjacent parameter group and the reference parameter group is smaller than the second distance between the current parameter to be adjusted and the reference parameter group, and the second difference corresponding to the target adjacent parameter group is smaller than the first difference.

3. The method according to claim 2, characterized in that The step of selecting a target neighboring parameter group from the at least one neighboring parameter group as an initial parameter group for this iteration process according to the second difference values ​​corresponding to different neighboring parameter groups includes: The neighboring parameter group with the smallest difference among the second differences corresponding to different neighboring parameter groups is used as the initial parameter group for this iteration process.

4. A task flow prediction device for real-time tasks, characterized in that: The device comprises: A historical data acquisition module is used to obtain historical task flow data in the real-time task scheduling system; A prediction result determination module is used to input the historical task flow data into a pre-trained task flow prediction model to obtain a task flow prediction result; The task flow prediction model includes an input layer and a hidden layer; the initial parameter group in the task flow prediction model includes a connection weight between the input layer and the hidden layer, and a scaling factor and a translation factor of a wavelet basis function used in the hidden layer; The task flow prediction model is trained in the following way: An initial parameter determination module, used for iterating the original parameter group to obtain an initial parameter group, and using the initial parameter group as the initial parameter group of the task flow prediction model to be trained; For any iterative process, the initial parameter set of the iterative process is determined in the following way: The initial parameter group determined in the previous iteration process is used as the current parameter to be adjusted; the first prediction result output by the task flow prediction model trained in the previous iteration process is obtained; wherein the first prediction result is obtained by predicting the sample flow data used in the previous iteration process based on the task flow prediction model trained in the previous iteration process; the initial parameter group of the task flow prediction model trained in the previous iteration process includes the current parameter to be adjusted; Within the preset initial parameter group range, obtain at least one adjacent parameter group of the current parameter to be adjusted; obtain a second prediction result output by the task flow prediction model trained in this iteration process; wherein the second prediction result is obtained by predicting the sample flow data used in this iteration process based on the task flow prediction model trained in this iteration process; the initial parameter group of the task flow prediction model trained in this iteration process includes at least one of the adjacent parameter groups; Obtain a reference parameter group corresponding to the at least one adjacent parameter group, and the number of the at least one adjacent parameter group; obtain a third prediction result output by the task flow prediction model trained in this iteration process; wherein the third prediction result is obtained by predicting the sample flow data used in this iteration process based on the task flow prediction model trained in this iteration process; the initial parameter group of the task flow prediction model trained in this iteration process includes the reference parameter group; Obtain a first difference between the first prediction result and the corresponding task flow label, a second difference between the second prediction result and the corresponding task flow label, and a third difference between the third prediction result and the corresponding task flow label; determine a first parameter influencing factor of this iteration process according to the first difference and the third difference; determine a second parameter influencing factor of this iteration process according to the number of groups; select an initial parameter group for this iteration process from the at least one adjacent parameter group according to the first parameter influencing factor, the second parameter influencing factor and the second difference; The network parameter adjustment module is used to adjust the initial parameter group according to the sample traffic data of different sample real-time tasks and the corresponding task traffic labels.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.