Method, device, electronic equipment and readable storage medium for generating node representation

文档序号:8299 发布日期:2021-09-17 浏览:28次 中文

1. A method of generating a node representation, comprising:

acquiring a special composition to be processed;

sampling in the abnormal composition picture to be processed according to the first element path to obtain at least one first walking path;

obtaining an initial node representation of each node in the abnormal graph to be processed according to the at least one first walking path;

a final node representation for each node is generated based on the initial node representation for each node and the initial node representations for the neighboring nodes for each node.

2. The method according to claim 1, wherein the sampling at least one first walking path in the to-be-processed abnormal pattern according to the first meta path comprises:

and for each first unitary path, sampling to obtain at least one first wandering path corresponding to the first unitary path according to the node type and the connection relation between the nodes specified by the first unitary path in the heterogeneous composition to be processed.

3. The method according to claim 1, wherein the deriving an initial node representation of each node in the to-be-processed anomaly map according to the at least one first walking path comprises:

taking each node in each first walking path as a first node;

according to a first walking path where each first node is located, a node pair of each first node is constructed, wherein the node pair comprises the first node and a neighbor node of the first node;

the node pair input node of each first node represents a model, and an output result output by the node representation model for each node pair is taken as an initial node representation of each node.

4. The method of claim 3, further comprising pre-training the node representation model by:

acquiring training data, wherein the training data comprises a sample abnormal graph and a marked node representation of each node in the sample abnormal graph;

sampling in the sample abnormal graph according to a second element path to obtain at least one second walking path;

taking each node in each second walking path as a second node, and constructing a node pair of each second node, wherein the node pair comprises the second node and a neighbor node of the second node;

and representing and training the neural network model by using the node pairs of the second nodes and the labeled nodes of the second nodes until the neural network model converges to obtain the node representation model.

5. The method of claim 1, wherein the generating a final node representation for each node from the initial node representation for each node and the initial node representations for the neighbor nodes for each node comprises:

carrying out weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node, and taking the obtained weighted summation result as the updated node representation of each node;

after replacing the initial node representation of each node with the updated node representation, switching to the step of performing weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node until reaching the preset times;

when the preset number of times is reached, the updated node representation of each node is taken as the final node representation of each node.

6. An apparatus that generates a node representation, comprising:

the acquisition unit is used for acquiring a heteromorphic image to be processed;

the sampling unit is used for sampling in the abnormal composition picture to be processed according to a first unitary path to obtain at least one first walking path;

the processing unit is used for obtaining an initial node representation of each node in the abnormal graph to be processed according to the at least one first wandering path;

and the generating unit is used for generating final node representation of each node according to the initial node representation of each node and the initial node representation of the neighbor node of each node.

7. The apparatus according to claim 6, wherein the sampling unit, when obtaining at least one first walking path from the to-be-processed abnormal pattern by sampling according to a first element path, specifically performs:

and for each first unitary path, sampling to obtain at least one first wandering path corresponding to the first unitary path according to the node type and the connection relation between the nodes specified by the first unitary path in the heterogeneous composition to be processed.

8. The apparatus according to claim 6, wherein the processing unit, when obtaining the initial node representation of each node in the to-be-processed abnormal graph according to the at least one first walking path, specifically performs:

taking each node in each first walking path as a first node;

according to a first walking path where each first node is located, a node pair of each first node is constructed, wherein the node pair comprises the first node and a neighbor node of the first node;

the node pair input node of each first node represents a model, and an output result output by the node representation model for each node pair is taken as an initial node representation of each node.

9. The apparatus of claim 8, further comprising a training unit configured to pre-train the node representation model by:

acquiring training data, wherein the training data comprises a sample abnormal graph and a marked node representation of each node in the sample abnormal graph;

sampling in the sample abnormal graph according to a second element path to obtain at least one second walking path;

taking each node in each second walking path as a second node, and constructing a node pair of each second node, wherein the node pair comprises the second node and a neighbor node of the second node;

and representing and training the neural network model by using the node pairs of the second nodes and the labeled nodes of the second nodes until the neural network model converges to obtain the node representation model.

10. The apparatus according to claim 6, wherein the generating unit, when generating the final node representation of each node from the initial node representation of each node and the initial node representations of the neighboring nodes of each node, specifically performs:

carrying out weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node, and taking the obtained weighted summation result as the updated node representation of each node;

after replacing the initial node representation of each node with the updated node representation, switching to the step of performing weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node until reaching the preset times;

when the preset number of times is reached, the updated node representation of each node is taken as the final node representation of each node.

11. An electronic device, comprising:

at least one processor; and

a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,

the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.

12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.

13. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-5.

Background

Currently, graph network representations may be used for a variety of downstream tasks, including node classification, link prediction, community detection, and the like. In the real world, a large number of heterogeneous graphs exist, and the heterogeneous graphs contain various node types and edge types. In order to learn semantic information of different types of nodes, the prior art generally adopts a method that: different walking paths are obtained through the defined meta-path sampling, the walking paths are trained through training methods such as word2vec and the like, and finally the representation result of the nodes in the heterogeneous graph is obtained. Such a node representation learning method considers only one meta path, loses information of other meta paths, and affects accuracy of node representation due to noise (edges erroneously connected between nodes).

Disclosure of Invention

According to a first aspect of the present disclosure, there is provided a method of generating a node representation, comprising: acquiring a special composition to be processed; sampling in the abnormal composition picture to be processed according to the first element path to obtain at least one first walking path; obtaining an initial node representation of each node in the abnormal graph to be processed according to the at least one first walking path; a final node representation for each node is generated based on the initial node representation for each node and the initial node representations for the neighboring nodes for each node.

According to a second aspect of the present disclosure, there is provided an apparatus for generating a node representation, comprising: the acquisition unit is used for acquiring a heteromorphic image to be processed; the sampling unit is used for sampling in the abnormal composition picture to be processed according to a first unitary path to obtain at least one first walking path; the processing unit is used for obtaining an initial node representation of each node in the abnormal graph to be processed according to the at least one first wandering path; and the generating unit is used for generating final node representation of each node according to the initial node representation of each node and the initial node representation of the neighbor node of each node.

According to a third aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.

According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method as described above.

According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method as described above.

It can be seen from the above technical solutions that, in the embodiment, after at least one first walking path is obtained by sampling according to a first preset element path in the heterogeneous composition to be processed, an initial node representation of each node in the heterogeneous composition to be processed is obtained according to the at least one first walking path obtained by sampling, and then a final node representation of each node is generated according to the initial node representations of each node and the neighboring nodes of each node, so that the final node representation of each node can fuse information of the neighboring nodes, and accuracy of the generated final node representation is improved.

It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.

Drawings

The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:

FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;

FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;

FIG. 3 is a schematic diagram according to a third embodiment of the present disclosure;

FIG. 4 is a schematic diagram according to a fourth embodiment of the present disclosure;

FIG. 5 is a block diagram of an electronic device used to implement the method of generating a node representation of an embodiment of the present disclosure.

Detailed Description

Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure. As shown in fig. 1, the method for generating a node representation in this embodiment may specifically include the following steps:

s101, acquiring a heteromorphic image to be processed;

s102, sampling in the abnormal composition picture to be processed according to a first preset element path to obtain at least one first walking path;

s103, obtaining an initial node representation of each node in the abnormal graph to be processed according to the at least one first walking path;

and S104, generating final node representation of each node according to the initial node representation of each node and the initial node representation of the neighbor node of each node.

According to the method for generating the node representation, after at least one first walking path is obtained in the heterogeneous composition to be processed according to the sampling of the first preset element path, the initial node representation of each node in the heterogeneous composition to be processed is obtained according to the at least one first walking path obtained through the sampling, and then the final node representation of each node is generated according to the initial node representation of each node and the neighbor nodes of each node, so that the information of the neighbor nodes can be fused in the final node representation of each node, and the accuracy of the generated final node representation is improved.

In this embodiment, when S101 is executed to obtain a heterogeneous graph to be processed, the heterogeneous graph to be processed may be selected according to different downstream tasks, where the obtained heterogeneous graph to be processed includes different types of nodes and edges between the nodes, and the edges between the nodes represent a connection relationship between the two nodes.

For example, if the downstream task is a news recommendation task, the to-be-processed heterogeneous graph obtained by executing S101 in this embodiment may be a graph network composed of three types of nodes, namely a news node, a user node, and an interest node.

After the step S101 is executed to acquire the abnormal composition to be processed, the step S102 is executed to sample at least one first wandering path in the acquired abnormal composition to be processed according to the first meta path.

The first meta path (meta path) in this embodiment may be preset according to the structure of the to-be-processed heterogeneous graph and the downstream task for which the to-be-processed heterogeneous graph is used, where the first meta path includes a specified node type and a connection relationship between nodes.

For example, if the pending heterogeneous graph includes three types of nodes, i.e., B (news), U (user), and a (interest); the first meta path 1 used by the embodiment to execute S102 may be U-B-U (user-news-user) for describing a relationship that one news is clicked by two users; the first meta-path 2 used may be U-a-U to describe the relationship where two users have the same interest. It can be seen that when sampling is performed in the heterogeneous image to be processed according to different first unitary paths, the obtained first walking paths corresponding to the different first unitary paths have different semantic information.

It can be understood that, in the embodiment, when S102 is executed, at least one first walking path may be obtained according to one first meta-path sample, or a plurality of first walking paths may be obtained according to a plurality of first meta-path samples.

In this embodiment, when S102 is executed to obtain at least one first walking path by sampling in the to-be-processed abnormal pattern according to the first meta path, an optional implementation manner that can be adopted is as follows: and for each first unitary path, sampling to obtain at least one first wandering path corresponding to the first unitary path according to the node type and the connection relation between the nodes specified by the first unitary path in the abnormal composition to be processed.

In this embodiment, when S102 is executed, sampling may be performed in the to-be-processed abnormal graph based on the random walk strategy, so as to obtain a first walk path corresponding to each first unitary path.

For example, if the nodes included in the heterogeneous graph to be processed are U1, U2, U3, B1, B2, B3, B4, and a1, a2, A3, a 4; if the first meta-path 1 is U-B-U, the first walking path sampled according to the first meta-path 1 in the to-be-processed abnormal image may be U1-B2-U2-B4-U3, and the first walking path may also be U2-B3-U3-B2-U1; if the first meta-path 2 is U-A-U, the first walking path sampled according to the first meta-path 2 in the abnormal image to be processed may be U1-A2-U2-A4-U3.

In this embodiment, after the step S102 is executed to obtain at least one first walking path, the step S103 is executed to obtain an initial node representation of each node in the to-be-processed abnormal graph according to the obtained at least one first walking path.

In this embodiment, when S103 is executed to obtain the initial node representation of each node in the to-be-processed heterogeneous composition according to at least one first walking path, each obtained first walking path may be directly input to a neural network model obtained through pre-training, and the initial node representation of each node in the to-be-processed heterogeneous composition is obtained by the neural network model according to the input edges between nodes of each type in the first walking path.

In this embodiment, after the initial node representation of each node in the to-be-processed abnormal graph is obtained by executing S103, executing S104 to generate a final node representation of each node according to the initial node representation of each node and the initial node representation of the neighbor node of each node.

Before executing S104 to generate a final node representation of each node according to the initial node representation of each node and the initial node representations of the neighboring nodes of each node, the present embodiment may further include the following: for each node, a node in the to-be-processed abnormal graph, whose distance from the node is a preset distance, is used as a neighbor node of the node, and if the preset distance is 1, the node that is 1 distance away from the current node is used as a neighbor node of the current node in this embodiment.

In the embodiment, when S104 is executed, the initial node representation of each node and the initial node representations of the neighboring nodes of each node may be directly subjected to weighted summation, so that the obtained weighted summation result is used as the final node representation of each node.

Specifically, in this embodiment, when executing S104 to generate a final node representation of each node according to the initial node representation of each node and the initial node representations of the neighboring nodes of each node, an optional implementation manner that may be adopted is as follows: carrying out weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node, and taking the obtained weighted summation result as the updated node representation of each node; after replacing the initial node representation of each node with the updated node representation, switching to the step of performing weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node until reaching the preset times; when the preset number of times is reached, the updated node representation of each node is taken as the final node representation of each node.

In the embodiment, when performing S104 to perform weighted summation on the initial node representation of each node and the initial node representations of the neighboring nodes of each node, the following calculation formula may be used:

in the formula: h(k+1)Representing the updated node representation of the current node at the (k +1) th time; alpha is a weight coefficient and is a value between 0 and 1;representing an adjacency matrix; h iskRepresenting the updated node representation of the neighbor node of the current node at the kth time; hkRepresenting the updated node representation of the current node at the kth time.

That is to say, in the embodiment, each node in the heterogeneous graph to be processed and the neighbor node corresponding to each node are aggregated, and the initial node representation of each node is updated for multiple times, so that the obtained final node representation of each node includes information of the neighbor node, and the accuracy of the obtained final node representation is further improved.

Fig. 2 is a schematic diagram according to a second embodiment of the present disclosure. As shown in fig. 2, in this embodiment, when executing S103 "obtaining an initial node representation of each node in the to-be-processed abnormal graph according to the at least one first walking path", the method may specifically include the following steps:

s201, taking each node in each first walking path as a first node;

s202, according to a first walking path where each first node is located, a node pair of each first node is constructed, and the node pair comprises the first node and a neighbor node of the first node;

s203, representing the node pair input node of each first node as an input node, and representing an output result output by the node representation model for each node pair as an initial node of each node.

In this embodiment, when S103 is executed to obtain the initial node representation of each node according to the first walking path, after the node pair corresponding to each node is constructed, each node pair is processed by using the node representation model obtained through pre-training, so as to obtain the initial node representation of each node.

In this embodiment, when S202 is executed and a node pair of each first node is constructed according to the first walking path where each first node is located, an optional implementation manner that can be adopted is as follows: for each first node, in a first wandering path where the first node is located, determining at least one neighbor node of the first node, for example, taking a node located at a preset distance before and/or after a current node as a neighbor node of the current node; and obtaining the node pair of the first node according to the first node and a neighbor node of the first node.

The node representation model used in the embodiment to execute S203 is obtained by training in advance, and the node representation model is capable of outputting an initial node representation of each node according to the input node pair corresponding to the node.

Fig. 3 is a schematic diagram according to a third embodiment of the present disclosure. As shown in fig. 3, the node representation model used in executing S203 in this embodiment is obtained by pre-training in the following manner:

s301, acquiring training data, wherein the training data comprises a sample abnormal situation picture and a marked node representation of each node in the sample abnormal situation picture;

s302, sampling in the sample abnormity image according to a second element path to obtain at least one second walking path;

s303, taking each node in each second walking path as a second node, and constructing a node pair of each second node, wherein the node pair comprises the second node and a neighbor node of the second node;

s304, representing and training the neural network model by using the node pairs of the second nodes and the labeled nodes of the second nodes until the neural network model converges to obtain a node representation model.

The second meta path used for executing S302 in this embodiment may be the same as the first meta path, or may be different from the first meta path.

The process of performing S302 sampling to obtain at least one second walking path in this embodiment is similar to the process of performing S102 sampling to obtain at least one first walking path in the foregoing embodiment, and is not described herein again.

The process of executing S303 to construct the node pair of the second node in this embodiment is similar to the process of executing S202 to construct the node pair of the first node in the foregoing embodiment, and is not described herein again.

In this embodiment, step S304 is to represent the training neural network model by using the node pair of the second node and the labeled node of the second node, until the neural network model converges, the optional implementation manner that may be adopted is: inputting the node pairs of the second nodes into the neural network model to obtain an output result of the neural network model aiming at the node pair output, wherein the neural network model used in the embodiment can be a walking class diagram learning model; and updating parameters in the neural network model according to the calculated loss function value represented by the obtained output result and the labeled node of the second node until the neural network model converges.

With the node representation model trained in this embodiment, the node representation of the input node can be output based on the node pair of the node.

Fig. 4 is a schematic diagram according to a fourth embodiment of the present disclosure. As shown in fig. 4, the apparatus 400 for generating a node representation according to this embodiment includes:

the acquiring unit 401 is configured to acquire an abnormal composition to be processed;

the sampling unit 402 is configured to sample the to-be-processed abnormal image according to a first preset element path to obtain at least one first walking path;

the processing unit 403 is configured to obtain an initial node representation of each node in the to-be-processed abnormal graph according to the at least one first walking path;

a generating unit 404 for generating a final node representation of each node based on the initial node representation of each node and the initial node representations of the neighboring nodes of each node.

The obtaining unit 401 may select the heterogeneous graph to be processed according to different downstream tasks when obtaining the heterogeneous graph to be processed, where the obtained heterogeneous graph to be processed includes different types of nodes and edges between the nodes, and the edges between the nodes represent a connection relationship between the two nodes.

In this embodiment, after the obtaining unit 401 obtains the abnormal composition to be processed, the sampling unit 402 samples the obtained abnormal composition to be processed according to the first meta path to obtain at least one first walking path.

It is understood that the sampling unit 402 may obtain at least one first walking path according to one first meta-path sampling, and may also obtain a plurality of first walking paths according to a plurality of first meta-path sampling.

When the sampling unit 402 samples at least one first walking path in the abnormal image to be processed according to the first meta path, the optional implementation manner that can be adopted is as follows: and for each first unitary path, sampling to obtain at least one first wandering path corresponding to the first unitary path according to the node type and the connection relation between the nodes specified by the first unitary path in the abnormal composition to be processed.

The sampling unit 402 may perform sampling in the to-be-processed abnormal image based on a random walk strategy, so as to obtain a first walk path corresponding to each first unitary path.

In this embodiment, after the sampling unit 402 obtains the at least one first walking path, the processing unit 403 obtains an initial node representation of each node in the anomaly map to be processed according to the obtained at least one first walking path.

When obtaining the initial node representation of each node in the heterogeneous composition to be processed according to at least one first walking path, the processing unit 403 may directly input each obtained first walking path into a neural network model obtained by pre-training, and obtain the initial node representation of each node in the heterogeneous composition to be processed according to the input edges between the nodes and nodes of each type in the first walking path by using the neural network model.

When the processing unit 403 obtains the initial node representation of each node in the to-be-processed abnormal graph according to the at least one first walking path, an optional implementation manner that may be adopted is as follows: taking each node in each first walking path as a first node; according to a first walking path where each first node is located, a node pair of each first node is constructed, wherein the node pair comprises the first node and a neighbor node of the first node; the node pair input node of each first node represents a model, and the output result output by the node representation model for each node pair is taken as an initial node representation of each node.

When the processing unit 403 constructs a node pair of each first node according to the first walking path where each first node is located, the optional implementation manner that can be adopted is as follows: for each first node, determining at least one neighbor node of the first node in a first wandering path where the first node is located; and obtaining the node pair of the first node according to the first node and a neighbor node of the first node.

The node representation model used by the processing unit 403 is pre-trained by the training unit 405, and is capable of outputting an initial node representation of each node based on the input node pair corresponding to the node.

The apparatus 400 for generating node representation in this embodiment may further include a training unit 405, configured to obtain a node generation model through pre-training in the following manner: acquiring training data, wherein the acquired training data comprises a sample abnormal pattern and a marked node representation of each node in the sample abnormal pattern; sampling in the obtained sample abnormal graph according to the second element path to obtain at least one second walking path; taking each node in each second walking path as a second node, and constructing a node pair of each second node, wherein the constructed node pair comprises the second node and a neighbor node of the second node; and representing and training the neural network model by using the node pairs of the second nodes and the labeled nodes of the second nodes until the neural network model converges to obtain a node representation model.

The second meta-path used by the training unit 405 may be the same as the first meta-path used by the sampling unit 402, or may be different from the first meta-path.

The process of the training unit 405 sampling to obtain at least one second walking path is similar to the process of sampling to obtain at least one first walking path by the sampling unit 402, and is not described herein again.

The process of the training unit 405 in constructing the node pair of the second node is similar to the process of the processing unit 403 in constructing the node pair of the first node, and is not described herein again.

When the training unit 405 represents the training neural network model by using the node pair of the second node and the labeled node of the second node until the neural network model converges, the optional implementation manner that can be adopted is as follows: inputting the node pairs of the second nodes into the neural network model to obtain an output result of the neural network model aiming at the node pair output, wherein the neural network model used in the embodiment can be a walking class diagram learning model; and updating parameters in the neural network model according to the calculated loss function value represented by the obtained output result and the labeled node of the second node until the neural network model converges.

After the initial node representation of each node in the to-be-processed abnormal graph is obtained by the processing unit 403, the generating unit 404 generates the final node representation of each node according to the initial node representation of each node and the initial node representations of the neighbor nodes of each node.

The generating unit 404 may further include, before generating the final node representation of each node from the initial node representation of each node and the initial node representations of the neighbor nodes of each node, the following: and regarding each node, taking the node with the preset distance from the node in the abnormal graph to be processed as a neighbor node of the node.

The generating unit 404 may directly perform a weighted summation of the initial node representation of each node with the initial node representations of the neighboring nodes of each node, thereby taking the resulting weighted summation result as the final node representation of each node.

Specifically, when the generating unit 404 generates the final node representation of each node according to the initial node representation of each node and the initial node representations of the neighboring nodes of each node, the optional implementation manner that can be adopted is as follows: carrying out weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node, and taking the obtained weighted summation result as the updated node representation of each node; after replacing the initial node representation of each node with the updated node representation, switching to the step of performing weighted summation on the initial node representation of each node and the initial node representation of the neighbor node of each node until reaching the preset times; when the preset number of times is reached, the updated node representation of each node is taken as the final node representation of each node.

In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.

The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.

As shown in fig. 5, is a block diagram of an electronic device of a method of generating a node representation according to an embodiment of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.

As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM502, and the RAM503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.

A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.

The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 501 performs the various methods and processes described above, such as the method of generating a node representation. For example, in some embodiments, the method of generating a node representation may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 508.

In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM502 and/or the communication unit 509. When the computer program is loaded into the RAM503 and executed by the computing unit 501, one or more steps of the above described method of generating a node representation may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured by any other suitable means (e.g., by means of firmware) to perform the method of generating a node representation.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.

Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.

It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.

The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:语义解析方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!