- Newest
- Most votes
- Most comments
The error you're encountering when trying to use edge features in your link prediction model with Neptune ML is likely due to a compatibility issue or a limitation in the current implementation.
Link prediction in Neptune ML is designed to predict the most likely destination nodes for a particular source node and outgoing edge, or the most likely source nodes for a given destination node and incoming edge. By default, it uses the graph structure and node embeddings to make these predictions.
While Neptune ML supports various types of features for nodes, including numerical, categorical, and text features, the current implementation may not fully support the use of edge features in link prediction tasks. This could explain why you're encountering an error when setting 'use-edge-features' to true.
To improve your link prediction model without relying on edge features, you could try the following approaches:
-
Ensure that you're using the most relevant node features in your model. Node properties can often capture information that might be represented in edge weights.
-
Experiment with different GNN architectures or hyperparameters. Neptune ML uses Relational Graph Convolutional Networks (R-GCNs) by default, but you might be able to improve performance by adjusting the number of layers, hidden dimensions, or other hyperparameters.
-
If your edge weights represent strength of connection, you could potentially incorporate this information by creating additional node features that aggregate information from connected edges.
-
Consider using a custom model implementation if the built-in models don't meet your specific requirements. Neptune ML allows users to define and implement custom models for specific scenarios.
If incorporating edge features is crucial for your use case, you may need to consult with AWS support or consider alternative graph machine learning frameworks that explicitly support edge features in link prediction tasks. As Neptune ML continues to evolve, support for edge features in link prediction may be added in future updates.
Sources
Amazon Neptune ML for machine learning on graphs - Amazon Neptune
Models and model training in Amazon Neptune ML - Amazon Neptune
Update: Please open a Support case with AWS for Neptune team to provide insights into this. Thanks!
Relevant content
- asked 3 years ago
Please open a Support case with AWS for Neptune team to provide insights into this. Thanks!