A method and system for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling
By adopting multi-granularity sampling and attention aggregation methods in the computing power network and considering the correlation between resources, the problem of low prediction accuracy of multi-dimensional resources in the existing technology is solved, and higher prediction accuracy and robustness are achieved. sex.
Patent Information
- Application Number
- CN202411008898.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing technology ignores the correlation between resources when predicting multi-dimensional resources in the computing power network, resulting in poor prediction accuracy.
Using a multi-granularity sampling method, we obtain the historical status data of various resources, construct a historical status information sequence, and perform attention aggregation to consider the correlation between different types of resources to improve prediction accuracy.
Through multi-granularity sampling and attention aggregation, the correlation and dynamic changes between multi-dimensional resources are effectively captured, improving the accuracy and robustness of resource status prediction.
Smart Images

Figure CN118555216B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computing power network technology, and in particular to a method and system for joint prediction of multi-dimensional resources of a computing power network based on multi-granularity sampling. Background Art
[0002] The basic feature of the computing network is to match computing tasks with multi-dimensional resources with the network as the center. Through the collaborative perception of multi-dimensional heterogeneous resources such as data resources, computing resources and network resources, computing tasks are dispatched to appropriate computing nodes on demand, realizing unified orchestration, unified operation and maintenance, and unified optimization of multi-dimensional resources, and finally realizing dynamic real-time scheduling of the computing network. Therefore, how to jointly predict the load status of multi-dimensional resources such as data resources, computing resources, and network resources to assist in the collaborative allocation and optimization of multi-dimensional resources is the key to solving the problem of how to efficiently utilize multi-dimensional resources in the computing network.
[0003] In order to achieve the most effective allocation of tasks, it is necessary to predict the resources of each node in the computing network to achieve efficient allocation. However, the prediction method of existing technology often only uses the data of a single resource for each single resource, ignoring the correlation between resources, and the prediction accuracy is poor. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method for joint prediction of multi-dimensional resources of a computing power network based on multi-granularity sampling to eliminate or improve one or more defects existing in the prior art.
[0005] One aspect of the present invention provides a method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling, the method comprising the following steps:
[0006] For each computing power node in the computing power network, the historical status data of each resource at multiple historical time points are obtained, and based on the historical status data of each resource at multiple historical time points, a historical status information sequence corresponding to each resource is constructed;
[0007] The historical state information sequence of each resource is sampled using multiple sampling intervals, and multiple sampling sequences are constructed for each resource;
[0008] Perform attention aggregation on the sampling sequences of the same resource to obtain the first aggregation vector corresponding to each sampling sequence;
[0009] Perform attention aggregation on first aggregation vectors corresponding to sampling sequences of different types of resources sampled at the same sampling interval, and obtain a second aggregation vector corresponding to each first aggregation vector;
[0010] The second aggregation vector corresponding to the sampling sequence of the same type of resource is input into a preset prediction model to obtain the predicted resource state of the resource.
[0011] The above scheme is adopted. First, for each computing power node, the historical status data of each resource at multiple historical time points is obtained. Based on the historical status data, the resource type and the sampling interval are used to perform two attention aggregations. In the step of aggregating based on the sampling interval, the first aggregation vectors of the values of each dimension corresponding to the same time point but different types of resources are aggregated. Since in the actual resource usage process, when one resource is being used, another resource will also be consumed, such as CPU and memory resources. This scheme takes into account the correlation between different types of resources through the above aggregation, thereby improving the final prediction accuracy.
[0012] In some embodiments of the present invention, in the step of constructing a historical status information sequence corresponding to each resource based on the historical status data of each resource at multiple historical time points, the historical status data of each resource at multiple historical time points are normalized, and the normalized historical status data of each resource are combined to construct a historical status information sequence for each resource.
[0013] In some embodiments of the present invention, in the step of sampling the historical status information sequence of each resource using multiple sampling intervals and constructing multiple sampling sequences for each resource, for the same sampling interval, different sampling starting positions are used to sample the historical status information sequence of each resource, so that the historical status information sequence of the same resource at the same sampling interval corresponds to multiple sampling sequences.
[0014] In some embodiments of the present invention, in the step of sampling the historical status information sequence of each resource using different sampling starting positions for the same sampling interval, the historical status values in the historical status information sequence that are less than or equal to the sampling interval are used as the sampling starting positions one by one according to the order in the historical status information sequence.
[0015] In some embodiments of the present invention, in the step of performing attention aggregation on sampling sequences of the same resource to obtain a first aggregation vector corresponding to each sampling sequence, each sampling sequence is processed to the same length using an Embedding layer, and then the sampling sequences processed by the Embedding layer of the same resource are subjected to attention aggregation.
[0016] In some embodiments of the present invention, in the steps of performing attention aggregation on sampling sequences of the same type of resources to obtain a first aggregation vector corresponding to each sampling sequence and performing attention aggregation on the first aggregation vectors corresponding to sampling sequences of different types of resources sampled at the same sampling interval to obtain a second aggregation vector corresponding to each first aggregation vector, a multi-head self-attention mechanism is used for aggregation.
[0017] In some embodiments of the present invention, in the step of aggregating using a multi-head self-attention mechanism, a softmax function is used.
[0018] In some embodiments of the present invention, in the step of inputting the second aggregation vector corresponding to the sampling sequence of the same resource into a preset prediction model to obtain the predicted resource state of the resource, the second aggregation vectors corresponding to the sampling sequence of the same resource are spliced and input into the prediction model, and the prediction model outputs the predicted resource state of the resource.
[0019] In some embodiments of the present invention, in the step of inputting the second aggregation vector corresponding to the sampling sequence of the same resource into a preset prediction model to obtain the predicted resource state of the resource, the prediction model outputs the predicted resource state through a linear layer.
[0020] The second aspect of the present invention also provides a computing power network multi-dimensional resource joint prediction system based on multi-granularity sampling, the system includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, when the computer instructions are executed by the processor, the system implements the steps implemented by the method described above.
[0021] The third aspect of the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps implemented by the aforementioned method for joint prediction of multi-dimensional resources of a computing power network based on multi-granularity sampling.
[0022] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention can be specifically pointed out and obtained in the specification and the accompanying drawings.
[0023] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of this application, and do not constitute a limitation of the present invention.
[0025] Figure 1 It is a schematic diagram of an implementation method of a computing power network multi-dimensional resource joint prediction method based on multi-granularity sampling of the present invention;
[0026] Figure 2 It is a schematic diagram of the overall architecture of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0028] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0029] Introduction to existing technology
[0030] Existing technology: using traditional machine learning algorithms, simple convolutional models or multi-layer perceptron models for prediction. For example, differential regression models, exponential smoothing models and other linear prediction algorithms, etc., these algorithms can be well applied to time series situations with stable time;
[0031] However, as the complexity and scale of computing network resource clusters increase, the randomness and nonlinear characteristics of historical data become more obvious. The existing methods are far from solving the problems of high complexity and volatility of data. In addition, these methods often do not consider the correlation between different computing resources, and only predict a single resource in isolation.
[0032] In order to overcome the shortcomings of traditional models, the second existing technology explores combining multiple prediction models and assigning different weights to take advantage of the advantages of two or more models. It uses machine learning and deep learning techniques to train and model historical data, and combines swarm intelligence and heuristic algorithms to adaptively find the optimal parameters of the network model and improve prediction accuracy;
[0033] However, the innovation of the existing technology 2 in the structural design of the model is relatively limited, and it will cause certain redundancy problems and increase the computational cost. In addition, these methods only predict a single resource in isolation.
[0034] like Figure 1 and 2As shown, the present invention proposes a method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling, and the method comprises the following steps:
[0035] Step S100, for each computing power node in the computing power network, historical status data of various resources at multiple historical time points are obtained, and based on the historical status data of various resources at multiple historical time points, a historical status information sequence corresponding to each resource is constructed;
[0036] In the specific implementation process, a continuous historical state information sequence under a time window T is given. , which contains the multi-dimensional resource status of the computing power network at T time nodes. These resource statuses are presented in the form of multi-dimensional vectors, and each dimension represents different resource information in the computing power network.
[0037] In a specific implementation process, the historical state values in the historical state information sequence are arranged based on time sequence.
[0038] In the specific implementation process, the computing network is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources, and network resources between the cloud, network, and edge according to business needs. It uses cloud-network integration technology and new network technologies such as SDN / NFV to deeply integrate edge computing nodes, cloud computing nodes, and various network resources, and provides customers with overall computing services including computing, storage, and connectivity through centralized control or distributed scheduling methods.
[0039] The computing power network has the following notable features:
[0040] Resource abstraction and unified scheduling: The computing network abstracts computing resources, storage resources, network resources, etc., and provides them to customers as part of the product. It also performs unified scheduling based on business needs to achieve optimal utilization of resources.
[0041] Service level division: Service levels are divided according to customer business needs rather than simply divided by region. Customers are promised service SLAs such as network performance and computing power, shielding the underlying differences.
[0042] Intelligence and elastic scaling: Improve task execution efficiency and computing quality through technical means such as algorithm optimization and intelligent allocation, monitor business traffic in real time, dynamically adjust computing resources, and achieve elastic scaling of resources.
[0043] Wide range of application scenarios: The computing power network can be applied to multiple fields such as scientific computing, data processing, image processing, virtual reality, intelligent manufacturing and smart cities, providing powerful, efficient and reliable computing power support for various applications.
[0044] To sum up, as a new generation of information infrastructure, computing power network is leading the new trend of network computing and computing networking, accelerating digital transformation and industrial upgrading.
[0045] In the specific implementation process, the resources in the computing power node include computing resources and storage resources, and the computing resources include processor resources and graphics processor resources;
[0046] Processor (CPU): The central processing unit is the core computing unit of the computing node, responsible for performing various computing tasks;
[0047] Graphics Processing Unit (GPU): GPU excels in processing large amounts of data in parallel and is commonly used in high-performance computing scenarios such as deep learning, image processing, and video rendering.
[0048] The storage resources include memory resources and hard disk resources;
[0049] Memory (RAM): Used to temporarily store data and instructions being processed by the CPU to improve computing efficiency.
[0050] Hard disk drive / solid state drive (HDD / SSD): used for long-term storage of data and programs. SSD has faster read and write speeds than HDD.
[0051] In the specific implementation process, in the step of obtaining the historical status data of each resource at multiple historical time points, the historical status data of each resource at multiple historical time points is the amount of resources consumed or the amount of remaining resources of each resource at multiple historical time points.
[0052] Step S200, sampling the historical status information sequence of each resource using multiple sampling intervals, and constructing multiple sampling sequences for each resource;
[0053] In the specific implementation process, in the step of sampling the historical status information sequence of each resource using multiple sampling intervals, the sampling interval can be a time interval or an interval for a numerical value in the historical status information sequence. Specifically, if it is a time interval, sampling can be performed at the same time interval; if it is an interval for a numerical value in the historical status information sequence, sampling can be performed at every interval with the same numerical value.
[0054] In the specific implementation process, this solution needs to consider the length of the historical lookback window T, that is, the length of the input historical data, and the prediction length τ, which indicates how many time windows in the future the solution predicts the resource status. In addition, the sampling interval needs to be determined. , n represents the number of sampling intervals, which is used to specify different time intervals for prediction.
[0055] This scheme normalizes the historical state of multi-dimensional resources, and then uses multi-granular sampling to obtain sampling results at different sampling intervals and converts them into embedded representations in the representation space. In the embedding layer, the original sample length is mapped to a hidden vector, and the embedded representations at different sampling intervals are connected together to form a comprehensive embedded representation. Such an embedded representation captures the resource state information at different sampling intervals and provides a more comprehensive and rich input for the subsequent attention aggregation and prediction steps.
[0056] Step S300, performing attention aggregation on sampling sequences of the same resource to obtain a first aggregation vector corresponding to each sampling sequence;
[0057] In the specific implementation process, attention aggregation mechanism is a commonly used technology in deep learning, which dynamically gives different attention to different parts according to the input information. When implementing attention aggregation, functions are usually used to calculate the attention weights to achieve aggregation.
[0058] The Softmax function is one of the most commonly used functions in attention aggregation. It converts the original score into a probability distribution as the attention weight through a normalized exponential function. In the attention aggregation formula, the Softmax function is usually used to calculate the normalized result of the similarity (after scaling) between the query vector and the key vector, and then multiply it with the numerical vector to obtain the final attention aggregation result.
[0059] The attention scoring function is a function that calculates the similarity between the query vector and the key vector. Its output will be used in the Softmax function to calculate the attention weight. Different attention scoring functions will lead to different attention convergence operations;
[0060] Additive Attention: The query and key are concatenated and fed into a multi-layer perceptron (MLP), and a scalar similarity score is calculated through the hidden layer of the MLP (usually using the tanh activation function);
[0061] Scaled Dot-Product Attention: Directly calculate the dot product of the query and the key, and divide it by the square root of the dimension of the key vector (i.e. the scaling factor) to avoid the gradient vanishing problem caused by the dot product result being too large.
[0062] Step S400, performing attention aggregation on first aggregation vectors corresponding to sampling sequences of different types of resources sampled at the same sampling interval, to obtain second aggregation vectors corresponding to each first aggregation vector;
[0063] In the specific implementation process, this solution uses a multi-head self-attention mechanism to aggregate information between different samplings. At the same time, within the sampled samples, a multi-head self-attention mechanism is also used to interact with information, and information is aggregated through the implicit correlation between resources of different dimensions;
[0064] In the cross-dimensional attention process, this scheme uses a multi-head self-attention mechanism to aggregate information between different samples in the same dimension;
[0065] In the cross-sample attention process, this scheme uses a multi-head self-attention mechanism to aggregate information between different samples in the same dimension.
[0066] Step S500: input the second aggregation vector corresponding to the sampling sequence of the same type of resource into a preset prediction model to obtain the resource state predicted by the resource.
[0067] In a specific implementation process, the predicted resource status may be the predicted resource status at multiple time points, and the resource status may be the amount of remaining resources or the amount of consumed resources.
[0068] In the specific implementation process, this solution uses multi-granular sampling and attention mechanism to effectively aggregate and represent the continuous historical state information sequence. Finally, through the transformation of the linear layer, the predicted resource state sequence within the future time window τ is obtained. This joint prediction method can better capture the correlation and dynamic changes between multi-dimensional resources and improve the accuracy and robustness of resource status prediction.
[0069] In the specific implementation process, in order to obtain the final prediction result, it is necessary to output the prediction value of the prediction model. Destandardize. Destandardize is the process of converting standardized data back to the original data in order to obtain prediction results that correspond to the original data. Specifically, destandardization can be performed using the opposite calculation steps and formulas of the standardization process. By destandardizing, the prediction results can be restored to their original scale and range.
[0070] The above scheme is adopted. First, for each computing power node, the historical status data of each resource at multiple historical time points is obtained. Based on the historical status data, the resource type and the sampling interval are used to perform two attention aggregations. In the step of aggregating based on the sampling interval, the first aggregation vectors of the values of each dimension corresponding to the same time point but different types of resources are aggregated. Since in the actual resource usage process, when one resource is being used, another resource will also be consumed, such as CPU and memory resources. This scheme takes into account the correlation between different types of resources through the above aggregation, thereby improving the final prediction accuracy.
[0071] In some embodiments of the present invention, in the step of constructing a historical status information sequence corresponding to each resource based on the historical status data of each resource at multiple historical time points, the historical status data of each resource at multiple historical time points are normalized, and the normalized historical status data of each resource are combined to construct a historical status information sequence for each resource.
[0072] In some embodiments of the present invention, in the step of sampling the historical status information sequence of each resource using multiple sampling intervals and constructing multiple sampling sequences for each resource, for the same sampling interval, different sampling starting positions are used to sample the historical status information sequence of each resource, so that the historical status information sequence of the same resource at the same sampling interval corresponds to multiple sampling sequences.
[0073] In some embodiments of the present invention, in the step of sampling the historical status information sequence of each resource using different sampling starting positions for the same sampling interval, the historical status values in the historical status information sequence that are less than or equal to the sampling interval are used as the sampling starting positions one by one according to the order in the historical status information sequence.
[0074] In the specific implementation process, the historical state values in the historical state information sequence that are less than or equal to the sampling interval are used as the sampling starting positions one by one to ensure that every value in the original sequence can be sampled; specifically, if the historical state information sequence is ABCDEFG and the sampling interval is 3, the sampling starting positions are A, B and C respectively.
[0075] The above scheme is adopted. This scheme uses different sampling intervals to sample the historical status information sequences of multiple resources. Specifically, for different types of resources at the same sampling starting position, the sampling sequences obtained by sampling at the same sampling interval correspond to each other. Since there is a corresponding relationship between the use of various resources at the same time in actual use, this scheme uses the mutual correspondence of sampling sequences to construct the corresponding relationship between various resources. The accuracy of the final resource status prediction is guaranteed based on the corresponding sampling sequences of different types of resources.
[0076] In some embodiments of the present invention, in the step of performing attention aggregation on sampling sequences of the same resource to obtain a first aggregation vector corresponding to each sampling sequence, each sampling sequence is processed to the same length using an Embedding layer, and then the sampling sequences processed by the Embedding layer of the same resource are subjected to attention aggregation.
[0077] In the specific implementation process, in deep learning and natural language processing (NLP), the Embedding layer is a very important concept, which is used to convert discrete inputs (such as words, characters, or labels) into continuous, dense vector representations. This conversion enables the model to capture the semantic relationship between inputs and perform efficient calculations and reasoning in continuous space.
[0078] In some embodiments of the present invention, in the steps of performing attention aggregation on sampling sequences of the same type of resources to obtain a first aggregation vector corresponding to each sampling sequence and performing attention aggregation on the first aggregation vectors corresponding to sampling sequences of different types of resources sampled at the same sampling interval to obtain a second aggregation vector corresponding to each first aggregation vector, a multi-head self-attention mechanism is used for aggregation.
[0079] In some embodiments of the present invention, in the step of aggregating using a multi-head self-attention mechanism, a softmax function is used.
[0080] In some embodiments of the present invention, in the step of inputting the second aggregation vector corresponding to the sampling sequence of the same resource into a preset prediction model to obtain the predicted resource state of the resource, the second aggregation vectors corresponding to the sampling sequence of the same resource are spliced and input into the prediction model, and the prediction model outputs the predicted resource state of the resource.
[0081] In some embodiments of the present invention, in the step of inputting the second aggregation vector corresponding to the sampling sequence of the same resource into a preset prediction model to obtain the predicted resource state of the resource, the prediction model outputs the predicted resource state through a linear layer.
[0082] In this solution, in order to make full use of the correlation between multi-dimensional resources, the time series rules in historical information are mined, and the multi-granularity sampling and joint prediction of the historical information of multi-dimensional resources in the computing network are fully developed. The time series composed of resource historical information has trend change information with different patterns, and presents different trend information at different sampling granularities. Finer sampling granularity can better pay attention to local trend changes, and coarser sampling granularity can grasp the changes in multi-dimensional resources from a global perspective. This solution can capture the time series patterns at these different granularities through multi-granularity sampling, and at the same time use the correlation between different dimensions to exchange information, fully mine and utilize these trend information and related information, which helps to improve the accuracy of the prediction of the future state of multi-dimensional resources.
[0083] The beneficial effects of this program include:
[0084] 1. This scheme proposes a multi-granularity sampling method to extract the trend characteristics of different patterns in the time series to improve the accuracy of prediction, in which the trend information of multi-dimensional resource status changing over time can be captured from different granularities;
[0085] 2. This scheme proposes a cross-sampling and cross-dimensional attention aggregation method, which can effectively utilize the temporal information in the historical state of multi-dimensional resources and the implicit relationships between dimensions.
[0086] An embodiment of the present invention also provides a computing power network multi-dimensional resource joint prediction system based on multi-granularity sampling, the system includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, when the computer instructions are executed by the processor, the system implements the steps implemented by the method described above.
[0087] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps implemented by the aforementioned method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0088] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0089] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0090] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.
[0091] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling, characterized in that: The method comprises the following steps: For each computing power node in the computing power network, the historical status data of each resource at multiple historical time points are obtained, and based on the historical status data of each resource at multiple historical time points, a historical status information sequence corresponding to each resource is constructed; The historical state information sequence of each resource is sampled using multiple sampling intervals, and multiple sampling sequences are constructed for each resource. For the same sampling interval, different sampling starting positions are used to sample the historical state information sequence of each resource, so that the historical state information sequence of the same resource under the same sampling interval corresponds to multiple sampling sequences, and according to the order in the historical state information sequence, the historical state values in the historical state information sequence that are less than or equal to the sampling interval are used as the sampling starting positions one by one; Perform attention aggregation on the sampling sequences of the same resource to obtain the first aggregation vector corresponding to each sampling sequence; Perform attention aggregation on first aggregation vectors corresponding to sampling sequences of different types of resources sampled at the same sampling interval, and obtain a second aggregation vector corresponding to each first aggregation vector; The second aggregation vector corresponding to the sampling sequence of the same resource is input into a preset prediction model to obtain the resource state predicted by the resource. The second aggregation vectors corresponding to the sampling sequence of the same resource are spliced and input into the prediction model. The prediction model outputs the resource state predicted by the resource through a linear layer.
2. The method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling according to claim 1 is characterized in that: In the step of constructing a historical status information sequence corresponding to each resource based on the historical status data of each resource at multiple historical time points, the historical status data of each resource at multiple historical time points are normalized, and the normalized historical status data of each resource are combined to construct a historical status information sequence for each resource.
3. The method for joint prediction of multi-dimensional resources of computing power network based on multi-granularity sampling according to claim 1 is characterized in that: In the step of performing attention aggregation on the sampling sequences of the same resource to obtain the first aggregation vector corresponding to each sampling sequence, each sampling sequence is processed into the same length using the Embedding layer, and then the sampling sequences processed by the Embedding layer of the same resource are subjected to attention aggregation.
4. The method for joint prediction of computing power network multi-dimensional resources based on multi-granularity sampling according to claim 1 is characterized in that: In the steps of performing attention aggregation on the sampling sequences of the same resources to obtain the first aggregation vector corresponding to each sampling sequence and performing attention aggregation on the first aggregation vectors corresponding to the sampling sequences of different resources sampled at the same sampling interval to obtain the second aggregation vector corresponding to each first aggregation vector, a multi-head self-attention mechanism is used for aggregation.
5. The method for joint prediction of computing power network multi-dimensional resources based on multi-granularity sampling according to claim 4 is characterized in that: In the step of aggregation using the multi-head self-attention mechanism, the softmax function is used.
6. A multi-dimensional resource joint prediction system for computing power network based on multi-granularity sampling, characterized in that: The system includes a computer device, which includes a processor and a memory, wherein the memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps implemented by the method as described in any one of claims 1 to 5.
