d5adad4a667886e4790e2cfcf262952034b6f698,demos/node-classification/graphsage-cora-example.py,,test,#Any#Any#Any#Any#Any#,174

Before Change


    Gnx = nx.from_pandas_edgelist(edgelist)
    for nid, f in zip(node_data.index, node_features):
        Gnx.node[nid]["feature"] = f
        Gnx.node[nid]["label"] = "paper"

    // We must also save the target encoding to convert model predictions
    encoder_file = model_file.replace(

After Change


    generator = GraphSAGENodeGenerator(
        G, batch_size, num_samples, seed=42
    )
    all_gen = generator.flow(node_ids, node_targets)

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

Frequency: 3

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: d5adad4a667886e4790e2cfcf262952034b6f698
Time: 2018-09-10
Author: docherty@gmail.com
File Name: demos/node-classification/graphsage-cora-example.py
Class Name:
Method Name: test


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: afef503d34919fb2febc0b475085f140e1a4e977
Time: 2016-08-31
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/io_utils/cifar10_load.py
Class Name:
Method Name: get_cifar10


Project Name: masa-su/pixyz
Commit Name: 9a244189f1fe351a4fc4ce47e928bd3b3163fa2e
Time: 2018-07-19
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/distributions/real_nvp.py
Class Name: RealNVP
Method Name: forward