Building an LP pipeline with the GDS
Our task will be to predict the future collaboration of actors and directors, using the homogeneous graph made of Person
nodes and KNOWS
relationships. We will only use the persons in the main component according to the connected component algorithm, identified by the MainComponent
label.
Creating and configuring the pipeline
The process of creating, training, and making predictions with a GDS pipeline is very similar to the node classification case. We will detail the steps in the following subsections.
Building the projected graph
First, we are going to create a projected graph, as follows:
projected_graph_object = create_projected_graph( gds, graph_name="graph-lp-collab", node_spec={ "Person": { "label": "...