Replies: 3 comments 2 replies
-
If I understand you correctly, you have an initial graph with edge features. Instead of using these, you obtain a k-NN graph from node features, and using this as GNN input. Is that correct? It looks like you don't use any of the edge features this way (potentially you do in the final edge classifier), but the k-NN will basically throw away all information about previous edges. If you want to maintain original edges, I suggest to fuse both graph connections together. WDYT? |
Beta Was this translation helpful? Give feedback.
-
I’m not using any node features, all the learning is suppose to be happen through edge features. I got good results using multi edge graph structure at input. Pre-transforming to KNN graph improves the results slightly better. I researched about knn graphs and could not find a lot in terms of edge data. I’m unsure what’s happening. |
Beta Was this translation helpful? Give feedback.
-
To start with, I created PyG data object feeding in edge_index, edge features as edge attributes, node features which is a constant matrix, and Knn graph pre_transform. Probably, the knn transform is not doing much here. .. ?? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PyG Team,
I am doing an experiment where I have created edge_index from a multiedge networkx graph and then I pre-transformed using KNN graph with k=3. The results improved and especially the roc_auc curve. I am trying to understand what impact this has on the input graph? Does pre-transforming to KNN change multi edge directed graph to undirected/ directed graph, or is it that the multi graph remains the same? I have edge features and doing edge classification. I have noticed that the number of edges after using T.KNNGraph pretransform remian the same as was the multiedge graph construction. I have following queries that I have not been able to understand and would appreciate your help:
I am doing edge classification , so retaining edges and edge features is an important task. My concept of applying KNN was to include more information related to graph construction and relations in the graph learning.
TIA
Tanzi
Beta Was this translation helpful? Give feedback.
All reactions