fb20983d5bdf0267a553383fcf319bf35e1f2f40,tests/layer/test_gcn.py,,test_GCN_activations,#,273
Before Change
nodes = G.nodes()
node_features = pd.DataFrame.from_dict(
{n: f for n, f in zip(nodes, features)}, orient="index"
)
G = StellarGraph(G, node_features=node_features)
After Change
def test_GCN_activations():
G, features = create_graph_features()
adj = G .to_adjacency_matrix().toarray()[None, :, :]
n_nodes = features.shape[0]
generator = FullBatchNodeGenerator(G, sparse=False, method="none")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: stellargraph/stellargraph
Commit Name: fb20983d5bdf0267a553383fcf319bf35e1f2f40
Time: 2020-03-03
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_gcn.py
Class Name:
Method Name: test_GCN_activations
Project Name: stellargraph/stellargraph
Commit Name: fb20983d5bdf0267a553383fcf319bf35e1f2f40
Time: 2020-03-03
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_gcn.py
Class Name:
Method Name: test_GCN_linkmodel_apply_dense
Project Name: stellargraph/stellargraph
Commit Name: fb20983d5bdf0267a553383fcf319bf35e1f2f40
Time: 2020-03-03
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_gcn.py
Class Name:
Method Name: test_GCN_apply_dense
Project Name: stellargraph/stellargraph
Commit Name: fb20983d5bdf0267a553383fcf319bf35e1f2f40
Time: 2020-03-03
Author: Huon.Wilson@data61.csiro.au
File Name: tests/layer/test_gcn.py
Class Name:
Method Name: test_GCN_regularisers