So I'm working on a project and I want to use Apache-Age to predict missing links or edges in a grapgh. I've searched through the documentation and forums, but I couldn't find any specific information on link/edge prediction with Apache Age.
Here's a code snippet of what I'm trying to do in Python:
from apache_age import Graph
from sklearn.metrics import roc_auc_score
from sklearn.model_selection import train_test_split
graph = Graph('my_graph')
# populate the graph with nodes and edges
# split the data into training and test sets
train_data, test_data = train_test_split(graph.get_edges(), test_size=0.2)
# train a link prediction model
# (insert machine learning code here)
# make predictions on the test data
predicted_scores = model.predict(test_data)
# evaluate the predictions using ROC AUC score
actual_labels = [graph.has_edge(e[0], e[1]) for e in test_data]
auc_score = roc_auc_score(actual_labels, predicted_scores)
print('ROC AUC score:', auc_score)
Can someone tell me if link prediction is possible with an apache age grapgh. Thank you!