Disclosure of Invention
The application aims to solve the technical problem of providing a graph classification method and a related device based on a saliency regularized graph neural network aiming at the defects of the prior art.
In order to solve the technical problem, a first aspect of the embodiment of the present application provides a graph classification method based on a saliency regularized graph neural network, the method comprising:
obtaining graph structure data corresponding to a target to be classified, and inputting the graph structure data into a saliency regularized graph neural network;
determining the classification category of the target to be classified through the saliency regularization graph neural network;
the saliency regularization graph neural network comprises a framework network layer with a plurality of framework network layers and a graph neural memory network with a plurality of graph neural memory layers, wherein the framework network is used for learning a node characteristic matrix of graph structure data, the graph neural memory network is used for refining compact graph characteristic representations corresponding to the graph structure data through the node characteristic matrix and reacting the compact graph characteristic representations with the framework network so as to globally regularize the framework network through a saliency distribution vector determined based on the compact graph characteristic representations.
The input items of the skeleton network layer comprise node feature matrixes output by a previous skeleton network layer, and significance distribution vectors determined based on the node feature matrixes output by the previous skeleton network layer and compact graph feature representations output by a graph neural memory layer corresponding to the skeleton network layer; the input items of the graphic neural memory layer comprise node characteristic matrixes output by a skeleton network layer corresponding to the previous graphic neural memory layer and compact graphic characteristic representations output by the previous graphic neural memory layer.
The graph classification method of the saliency regularization graph neural network specifically comprises the following steps of:
determining a normalized K value based on a node feature matrix determined by a skeleton network layer, and determining a normalized Q value based on a compact graph feature representation determined by a graph neural memory network;
the significance distribution vector is determined based on the similarity score normalization function, the normalized K value, and the normalized Q value.
The input item of the forefront skeleton network layer is graph structure data, and the forefront graph neural memory layer is configured with compact graph characteristic representation generated in a random initialization mode.
The graph classification method of the saliency regularized graph neural network comprises the step of determining a Q value of a cross attention unit based on a previous compact graph characteristic representation, determining a K value based on a current node characteristic matrix and determining a V value based on the current node characteristic matrix.
The graph classification method of the saliency regularization graph neural network, wherein the global regularization of the skeleton network through the saliency distribution vector determined based on compact graph feature representation specifically comprises the following steps:
fusing the significance distribution vector with the local weight corresponding to the skeleton network to obtain a fusion weight;
and carrying out global regularization on the skeleton network based on the fusion weight.
The graph classification method of the saliency regularization graph neural network, wherein the determining, by the saliency regularization graph neural network, the classification category of the object to be classified specifically comprises:
learning the graph structure data through each skeleton network layer and each graph neural memory layer in the saliency regularized graph neural network, and determining target compact graph characteristic representation through the graph neural memory layer at the last;
and determining the classification category corresponding to the target to be classified based on the target compact graph characteristic representation.
A second aspect of an embodiment of the present application provides a graph classification system based on a saliency regularized graph neural network, the system comprising:
the acquisition module is used for acquiring the graph structure data corresponding to the object to be classified and inputting the graph structure data into the saliency regularized graph neural network;
the classification module is used for determining classification categories of the targets to be classified through the saliency regularization graph neural network;
the saliency regularization graph neural network comprises a framework network layer with a plurality of framework network layers and a graph neural memory network with a plurality of graph neural memory layers, wherein the framework network is used for learning a node characteristic matrix of graph structure data, the graph neural memory network is used for refining compact graph characteristic representations corresponding to the graph structure data through the node characteristic matrix and reacting the compact graph characteristic representations with the framework network so as to globally regularize the framework network through a saliency distribution vector determined based on the compact graph characteristic representations.
A third aspect of the embodiments of the present application provides a computer-readable storage medium storing one or more programs executable by one or more processors to implement steps in a saliency-regularized graph neural network-based graph classification method as described in any one of the above.
A fourth aspect of an embodiment of the present application provides a terminal device, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the saliency-regularized graph neural network-based graph classification method as described in any one of the above.
The beneficial effects are that: compared with the prior art, the application provides a graph classification method based on a saliency regularization graph neural network and a related device, wherein the method comprises the steps of obtaining graph structure data corresponding to a target to be classified, and inputting the graph structure data into the saliency regularization graph neural network; determining the classification category of the target to be classified through the saliency regularization graph neural network; the saliency regularization graph neural network learns a node characteristic matrix through the skeleton network, extracts the node characteristic matrix into a compact graph characteristic representation through the graph neural memory network, determines a saliency distribution vector based on the compact graph characteristic representation and the node characteristic matrix, and finally normalizes the aggregation weight of the skeleton network through the saliency distribution vector. The saliency regularization graph neural network focuses on nodes which are more relevant to graph classification by measuring compatibility between the whole compact graph characteristic representation and the node characteristic matrix, and can learn more effective representation for the whole graph, so that the classification effect of the graph classification task can be improved.
Detailed Description
The application provides a graph classification method based on a saliency regularization graph neural network and a related device, and in order to make the purposes, technical schemes and effects of the application clearer and more definite, the application is further described in detail below by referring to the drawings and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
It should be understood that the sequence number and the size of each step in this embodiment do not mean the sequence of execution, and the execution sequence of each process is determined by the function and the internal logic of each process, and should not be construed as limiting the implementation process of the embodiment of the present application.
Through research, the task of classifying the graph is to predict the class corresponding to the graph structure data, and the task is widely applied to the fields of social networks, biochemistry and the like. In the graph classification task, the graph neural network model needs to perform effective feature representation learning on the whole information of the graph as well as each node and each side. However, existing graph classification methods generally focus on modeling local dependencies between neighboring nodes when subjected to neighborhood aggregation of graph nodes. Thus, although node characteristic matrix representation in the graph can be effectively learned, the global importance of each node in the graph classification task is ignored.
In order to solve the above problems, in an embodiment of the present application, graph structure data corresponding to an object to be classified is acquired, and the graph structure data is input into a saliency regularized graph neural network; determining the classification category of the target to be classified through the saliency regularization graph neural network; the saliency regularization graph neural network learns a node characteristic matrix through the skeleton network, extracts the node characteristic matrix into a compact graph characteristic representation through the graph neural memory network, determines a saliency distribution vector based on the compact graph characteristic representation and the node characteristic matrix, and finally normalizes the aggregation weight of the skeleton network through the saliency distribution vector. The saliency regularization graph neural network focuses on nodes which are more relevant to graph classification by measuring compatibility between the whole compact graph characteristic representation and the node characteristic matrix, and can learn more effective representation for the whole graph, so that the classification effect of the graph classification task can be improved.
The application will be further described by the description of embodiments with reference to the accompanying drawings.
The embodiment provides a graph classification method based on a saliency regularization graph neural network, as shown in fig. 1, the method includes:
s10, obtaining graph structure data corresponding to the object to be classified, and inputting the graph structure data into a saliency regularized graph neural network.
Specifically, the object to be classified is a task to be passed through the saliency regularized graph neural network, and the object to be classified may form graph structure data, wherein the object to be classified is a task in the fields of social networks, biochemistry and the like. For example, the target to be classified is a chemical molecule or the like. The graph structure data is a graph structure formed based on objects to be classified, wherein the graph structure data comprises nodes and edges, and the edges are used for reflecting interaction relations among the nodes. For example, as shown in fig. 2, the object to be classified is a chemical molecule, the graph structure data is a graph structure formed by the chemical molecule, wherein nodes in the graph structure data are atoms in the chemical molecule, edges represent interaction relations among the atoms, and each node and each edge contain a multidimensional feature vector for representing an attribute corresponding to the node or the edge.
S20, determining the classification category of the target to be classified through the saliency regularization graph neural network.
Specifically, the classification category is used to reflect the node category of the object to be classified, for example, the object to be classified is a chemical molecule, and the classification category is a property of the chemical molecule. It is understood that the feature vector of a node distinguishes whether the node type is a carbon atom or a hydrogen atom; then, the graph structure data converted by chemical molecules is sent to a saliency regularized graph neural network to extract various information of the graph, including node information, side information and graph structure information; and integrating the information of each node (central node) and the neighbor nodes thereof by using a neighborhood aggregation function, updating the integrated information to the feature vector of the corresponding central node to obtain the local information of the node, integrating the feature vectors of all nodes and edges into a graph feature representation, and determining the property of chemical molecules based on the graph feature representation.
In the step S10, as shown in fig. 3, the saliency regularized graph neural network includes a skeleton network and a graph neural memory network, the skeleton network includes a plurality of skeleton network layers, the graph neural memory network includes a plurality of graph neural memory layers, and the plurality of skeleton network layers and the plurality of graph neural memory layers are in one-to-one correspondence; alternatively, because the compact graph feature representation of the first-located neural memory layer is learned from the node feature matrix of the graph structure data, the neural memory layer may include one more layer than the skeleton network layers, i.e., a plurality of neural memory layers except the last skeleton network layer, each skeleton network layer corresponds to a neural memory layer.
For convenience of explanation, the corresponding skeleton network layer and the neural memory layer are denoted as a group of network layer groups, and for two adjacent network layer groups, the skeleton network layer in the former network layer group is connected with the skeleton network layer in the latter network layer group, the neural memory layer in the former network layer group is connected with the neural memory layer in the latter network layer group, and the skeleton network layer in the former network layer group is connected with the neural memory layer in the latter network layer group, and the neural memory layer in the latter network layer group is connected with the skeleton network layer in the latter network layer group. In one exemplary implementation, a residual connection (Residual connections) is provided between the neural memory layers in adjacent two sets of network layer groups.
Based on this, as shown in fig. 3, the input items of the skeleton network layer in each network layer group include a node feature matrix of the skeleton network layer output in the previous network layer group, and a significance distribution vector determined based on the node feature matrix of the skeleton network layer output in the previous network layer group and the compact graph feature representation of the graph neural memory layer output in the current network layer group; the input items of the graphic neural memory layer comprise a node characteristic matrix output by a skeleton network layer in a previous network layer group and a compact graphic characteristic representation output by the graphic neural memory layer in the previous network layer group. In addition, the input items of the skeleton network layer in the foremost network layer group are graph structure data, and the graph neural memory layer is configured with compact graph characteristic representations generated by a random initialization mode, wherein the compact graph characteristic representations of the graph neural memory layer are a leachable vector and are initialized randomly.
Further, a graph G with N nodes is taken as an input, and an operation process of each network layer group in the saliency regularized graph neural network is described, where the operation process specifically includes:
first, the neural memory layer extracts a compact graph feature representation from a node feature matrix output by a skeleton network layer in a previous network layer group and a compact graph feature representation output by the neural memory layer in the previous network layer group, wherein the compact graph feature representation can be represented as:
wherein,,indicating that the first group has d M Compact graph feature representation of dimensions->Node feature matrix representing skeleton network layer output in group l-1, each node having d H Feature dimension of->Is the transfer function of the neural memory layer.
Second, representing M based on compact graph features l The global saliency of each node is measured to obtain a saliency distribution vector, which is understood to be the vector of the saliency distribution of all the nodes in the l-1 group, for reflecting the relevance of each node to the graph classification. The saliency distribution vector may be passed through a functionFor M l Modeling compatibility with the features of each node to learn the node results, the saliency distribution vector can be expressed as:
wherein,,representing a saliency distribution vector, s l-1 The sum of the elements in (1) is a vector of significance distribution of all nodes of the skeleton network layer in the first-1 group.
Finally, the saliency distribution vector s is adopted l-1 Normalizing the skeleton network layer in the first group to perfect the node feature matrix learning of the skeleton network layer in the first group, wherein the node feature matrix of the skeleton network layer in the first group can be expressed as:
wherein,,is the conversion function of the skeleton network.
Further, the node feature matrix extracted in the previous network layer group is used to refine the compact graph feature representation M of the next group l+1 And so on, up to the last set of network layers, making the compact graph feature representation interdependent with the refinement of the node feature matrix. Furthermore, the compact graph characteristics of the output of the neural memory layer located in the last network layer group represent M L+1 (L is the total number of skeleton network layers in the skeleton network layers) is ultimately used for the graph classification task.
Based on the above, the determining, by the saliency regularization graph neural network, the classification category of the target to be classified specifically includes:
learning the graph structure data through each skeleton network layer and each graph neural memory layer in the saliency regularized graph neural network, and determining target compact graph characteristic representation through the graph neural memory layer positioned at the last;
and determining the classification category corresponding to the target to be classified based on the target compact graph characteristic representation.
Specifically, each skeleton network layer and each graphic neural memory layer gradually perform node feature matrix and compact graph representation learning according to a cascade sequence until target compact graph feature representations output by the final graphic neural memory layer are obtained, and then the classification category corresponding to the target to be classified is determined based on the target compact graph feature representations. In one implementation, a classifier may be connected to the last neural memory layer, where the classifier determines classification categories corresponding to objects to be classified based on the compact graph feature representation of the objects, and the classifier may be a pre-trained classification network model, a multi-layer perceptron, or the like.
In one implementation, the classifier may employ a multi-layer perceptron, with the target compact graph feature representation denoted as M L+1 Determining the predicted graphic label by the classifier may be expressed as:
wherein,,representing the predictive probability for all K categories, < +.>Representing the transfer function of the multi-layer perceptron.
Further, in the using process of the saliency regularization graph neural network, classification categories corresponding to the targets to be classified are determined directly based on the prediction graph labels. In the training process, the saliency regularization graph neural network can be trained based on the prediction category and the labeling category, wherein the saliency regularization graph neural network can be optimized in an end-to-end mode through cross entropy loss, and a loss function can be expressed as:
wherein X is i And y i Represent the ith training sample and its label, N t Representing the training set size.
In one implementation, the graph neural memory network refines compact graph feature representations of the entire graph from node feature matrices in the skeleton network, by which graph classification can be predicted, and global saliency of each node in the graph classification can also be estimated, and then globally regularizes the skeleton networkWherein the neural memory layer learns the potential embedding of a vectorAs a compact graph feature representation and iteratively perfected using a cross-attention operation.
As shown in fig. 3, the neural memory layer includes a cross-attention unit, the Q value of which is determined based on the previous compact graph feature representation, the K value is determined based on the current node feature matrix, and the V is determined based on the current node feature matrix.
Wherein the compact graph features in group 1-1 of the neural memory layer represent M l-1 As a query, the node feature matrix H of the skeleton network layer in group I-1 l-1 As both keys and values in the cross-attention operation,is a matrix of learnable parameters of linear transformation;Representing a multi-layer perceptron (Multilayer Perceptron, MLP) module, consisting of two fully connected layers with ReLU functionality. Furthermore, the conversion function->The conversion is performed in k iterations (as a hyper-parameter adjustment) in the neural memory layer.
Further, M learned l And is also used for standardizing the skeleton network to perfect the node characteristic matrix H l Therefore, the neural memory layer can extract compact graph characteristic representation from the newly perfected node characteristic matrix of each layer, and the compact graph characteristic representation is not unchanged node information. Wherein M is located in the foremost neural memory layer 0 Modeled as a learnable parameter to learn the appropriate initial feature points, compatible with the potential space of the skeleton node feature matrix.
In one implementation, the compact graph representation extracted from the graph neural memory network is used to globally regularize the skeleton network, which enables the skeleton network to perceive the saliency of global nodes when learning the node feature matrix. The embodiment of the application firstly utilizes the compact graph characteristic representation to measure the global saliency of each node, and then utilizes the node saliency distribution to normalize the skeleton network layer. The significance of a node and the classification of the graph are measured by establishing compatibility between the compact graph feature representation and the features of each node in the graph, wherein establishing compatibility between the compact graph feature representation and the features of each node in the graph may employ the dot product of the node feature matrix and the compact graph feature representation in the latent space projection to calculate the similarity between the node feature matrix and the compact graph feature representation, and then normalize the similarity scores obtained for all the nodes.
Based on this, the determination process of the saliency distribution vector specifically includes:
determining a normalized K value based on a node feature matrix determined by the skeleton network, and determining a normalized Q value based on a compact graph feature representation determined by the graph neural memory network;
the significance distribution vector is determined based on the similarity score normalization function, the normalized K value, and the normalized Q value.
Specifically, the normalized K value, the normalized Q value, and the significance distribution vector can be expressed as:
wherein,,representing a matrix of learnable parameters for representing a compact graph M l And node feature matrix H l-1 Projection to the same potential space, scaling factor +.>Used to avoid explosive growth of the dot product between the two vectors, softmax () represents the similarity score normalization function.
In one implementation, as shown in fig. 4, the globally regularizing the skeleton network by using the saliency distribution vector determined based on the compact graph feature representation specifically includes:
fusing the significance distribution vector with the local weight corresponding to the skeleton network to obtain a fusion weight;
and carrying out global regularization on the skeleton network based on the fusion weight.
Specifically, the local weight is the focusing weight of the nodes configured by the skeleton network, the saliency distribution vector is used as the global weight distribution of the nodes, and the local weight and the global weight are fused together to be used as the focusing weight of the nodes, so that the skeleton network is normalized by using the node saliency. In addition, the skeleton network comprises a plurality of skeleton network layers, and abnormal regularization is carried out on the skeleton network when the corresponding graph neural memory layer of each skeleton network layer adopts the corresponding compact graph characteristic representation to react on the skeleton network.
In one implementation, the fusion weight may be obtained by weighting the saliency distribution vector with the local weight corresponding to the skeleton network, i.e. the fusion weight may be expressed as:
the point index, beta, is a hyper-parameter adjusted on the validation set, the softmax function is used for normalization,representing the local weight of the i-th node, < ->Representing the neighbor node set of the ith node.
In one implementation, the fusion weights may be obtained by regularization scaling (Scaling regularization, SW) the local weights by a saliency distribution vector, i.e., the fusion weights may be expressed as:
wherein, gamma >0 is a super parameter.
Further, local weightsThe determination may be based on a skeletal network, wherein the skeletal network is a graph neural network, e.g., the skeletal network may be a graph roll-up neural network (Graph Convolutional Network, GCN), graphSAGE (Graph Sample and Aggregate), or a graph isomorphic network (Graph Isomorphism Network, GIN).
The following description will be made with respect to a skeleton network as a graph roll-up neural network, a graph SAGE, and a graph isomorphic network, respectively.
1. The skeleton network is a graph convolution neural network
The degree distribution is taken into account when performing local neighborhood aggregation: is the adjacency matrix in GCN->Sum matrix->Re-normalized local aggregate weight matrix,/->Regularized weight matrix representing all nodes, Θ l Is a matrix of leachable parameters for linear transformations in layer i, σ is the activation function.
2. The skeleton network is GraphSAGE
Taking an average aggregator of graphSAGE as an example, the local aggregation weights a of all adjacent nodes l Are all uniformly equal to 1, and therefore, the characteristics of the ith nodeIs refined into:wherein (1)>Representing regularized weights of the ith node and its neighbors.
3. The skeleton network is a graph isomorphic network
The local aggregate weight is equal to 1 except for the center node, wherein (1)>Representing the transform functions of the multi-layer perceptron of the first group of skeletal networks.
In summary, the present embodiment provides a graph classification method based on a saliency regularization graph neural network, where the method includes obtaining graph structure data corresponding to a target to be classified, and inputting the graph structure data into the saliency regularization graph neural network; determining the classification category of the target to be classified through the saliency regularization graph neural network; the saliency regularization graph neural network learns a node characteristic matrix through the skeleton network, extracts the node characteristic matrix into a compact graph characteristic representation through the graph neural memory layer, determines a saliency distribution vector based on the compact graph characteristic representation and the node characteristic matrix, and finally normalizes the aggregation weight of the skeleton network through the saliency distribution vector. The saliency regularization graph neural network focuses on nodes which are more relevant to graph classification by measuring compatibility between the whole compact graph characteristic representation and the node characteristic matrix, and can learn more effective representation for the whole graph, so that the classification effect of the graph classification task can be improved.
Further, in order to illustrate that the method and the device for regularizing the neighborhood aggregation process of the skeleton network by utilizing the node global significance regularization are beneficial to improving the performance of the graph classification task. The present example demonstrates its superiority in different experiments:
table 1 is an ablation experiment performed on two data sets, the MUTAG and the Letter-high, with each Backbone network (Backbone) as a reference model (Base model), discussing five different deformation effects, including: GNM-GNN (employing only the graph neural memory layer to learn the compact graph feature representation for classification prediction without involving significant regularization of nodes), SAR-Pooling (Pooling the feature matrix of the last layer of the skeleton network representing all nodes, classification prediction using the pooled graph feature representation, rather than using the compact graph feature representation), and implementation of two different fusion mechanisms discussed in embodiments of the application (SAR-GNN-W, SAR-GNN-S).
Table 1 Classification task ablation experiment accuracy (%)
Table 2 shows comparison of classification effects of the inventive example (SAR-GNN) and other models over different data sets:
TABLE 2 task accuracy of classification (%)
From the analysis of the experimental results, firstly, compared with a reference model (Base model) corresponding to a skeleton network, the embodiment of the application obtains considerable performance improvement on all data sets, which verifies the effectiveness and adaptability of the embodiment of the application in different types of skeleton networks. Secondly, the embodiment of the application based on one of the three skeleton networks achieves the best performance on all 5 data sets, and exceeds other related technology models, which represents the robustness of the embodiment of the application.
In fig. 5, a triangular dataset (TRIANGLES) is taken as an example, and the node saliency learned on four graphs in this dataset by means of the SAR-GCN and related technology model (cheygin-sup) of an embodiment of the application, these graphs being randomly selected from the test set. The graph classification task is to predict the number of triangles on the graph, which are indicated by shaded areas, the number of triangles being given as graph labels. The embodiment of the application can capture more discriminative nodes related to the triangle, and is more accurate than the related technology.
In fig. 6, a global saliency visualization of nodes learned by three positive samples in the mugag dataset by SAR-graphSAGE and related technology model (cheygin-sup) of the present application is shown, with SAR-graphSAGE assigning a higher saliency score to nodes located in the center of the Fused rings, consistent with chemical background knowledge. These visualized data clearly demonstrate the advantages of the embodiments of the present application, SAR-GNN, over the related art, in learning global node significance for graph classification.
In FIG. 7, a t-SNE plot of experimental results of test data for the Letter-high and ENZYMES datasets for an embodiment of the present application and related techniques is shown. These figures show consistent results of quantitative evaluation between different methods, again demonstrating the advantages of embodiments of the present application: the benefit from the regularization of saliency perception and the graph neural memory layer enables more efficient compact graph feature representation to be learned than other related techniques.
Based on the graph classification method based on the saliency regularization graph neural network, the embodiment provides a graph classification system based on the saliency regularization graph neural network, as shown in fig. 8, the system comprises:
the acquisition module 100 is configured to acquire graph structure data corresponding to a target to be classified, and input the graph structure data into a saliency regularized graph neural network;
the classification module 200 is configured to determine a classification category of the object to be classified through the saliency regularization graph neural network;
the saliency regularization graph neural network comprises a framework network with a plurality of framework network layers and a graph neural memory network with a plurality of graph neural memory layers, wherein the framework network is used for learning a node characteristic matrix of graph structure data, the graph neural memory network is used for refining compact graph characteristic representations corresponding to the graph structure data through the node characteristic matrix and reacting the compact graph characteristic representations with the framework network so as to globally regularize the framework network through a saliency distribution vector determined based on the compact graph characteristic representations.
Based on the graph classification method based on the saliency regularization graph neural network, the embodiment provides a computer readable storage medium, and one or more programs are stored in the computer readable storage medium and can be executed by one or more processors to implement the steps in the graph classification method based on the saliency regularization graph neural network.
Based on the graph classification method based on the saliency regularization graph neural network, the application also provides a terminal device, as shown in fig. 9, which comprises at least one processor (processor) 20; a display screen 21; and a memory (memory) 22, which may also include a communication interface (Communications Interface) 23 and a bus 24. Wherein the processor 20, the display 21, the memory 22 and the communication interface 23 may communicate with each other via a bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may invoke logic instructions in the memory 22 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 22 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 22, as a computer readable storage medium, may be configured to store a software program, a computer executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 performs functional applications and data processing, i.e. implements the methods of the embodiments described above, by running software programs, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include high-speed random access memory, and may also include nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the terminal device load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.