5503ece5e2338f8b2eaa56e17e14b3a2563d7628,demos/link-prediction-graphsage/cora-links-example.py,,test,#Any#Any#Any#,273

Before Change


    G_test = sg.StellarGraph(G_test, node_features="feature")

    // Mapper feeds data from (source, target) sampled subgraphs to GraphSAGE model
    test_mapper = GraphSAGELinkMapper(
        G_test, edge_ids_test, edge_labels_test, batch_size, num_samples, name="test"
    )

    // Evaluate and print metrics
    test_metrics = model.evaluate_generator(test_mapper)

After Change


    G_test = sg.StellarGraph(G_test, node_features="feature")

    // Generator feeds data from (source, target) sampled subgraphs to GraphSAGE model
    test_gen = GraphSAGELinkGenerator(
        G_test,
        batch_size,
        num_samples,
    ).flow(edge_ids_test, edge_labels_test)

    // Evaluate and print metrics
    test_metrics = model.evaluate_generator(test_gen)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: 5503ece5e2338f8b2eaa56e17e14b3a2563d7628
Time: 2018-09-12
Author: docherty@gmail.com
File Name: demos/link-prediction-graphsage/cora-links-example.py
Class Name:
Method Name: test


Project Name: stellargraph/stellargraph
Commit Name: 28399fb6b7e7964497808ac5a10281396a5499fd
Time: 2018-09-12
Author: yuriy.tyshetskiy@data61.csiro.au
File Name: demos/link-prediction-graphsage/cora-links-example.py
Class Name:
Method Name: test


Project Name: stellargraph/stellargraph
Commit Name: 6e7be4c247f55585f25fd0d8406d86e096b645e6
Time: 2018-09-05
Author: docherty@gmail.com
File Name: demos/link-prediction_graphsage/cora-links-example.py
Class Name:
Method Name: train