1dbc4bf21b2f67189f3a0c761a774ccaadb47587,stellar/mapper/node_mappers.py,GraphSAGENodeMapper,__init__,#GraphSAGENodeMapper#Any#Any#Any#Any#Any#Any#Any#,49

Before Change


            ["feature" in vdata for v, vdata in G.nodes(data=True)]
        )
        if not nodes_have_features:
            print("Warning: Not all nodes have a "feature" attribute.")
            print("Warning: This is required for the GraphSAGE mapper.")

        // Check that all nodes have features of the same size
        // Note: if there are no features in the nodes this will be 1!

After Change


        }

        // Check all nodes have features
        if None in feature_sizes:
            raise RuntimeError(
                "Not all nodes have a "feature" attribute: "
                "this is required for the GraphSAGE mapper."
            )

        // Sanity checks on feature sizes
        if feature_size:
            if feature_size not in feature_sizes:
                raise RuntimeWarning(
                    "Specified feature size doesn"t match graph features"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: stellargraph/stellargraph
Commit Name: 1dbc4bf21b2f67189f3a0c761a774ccaadb47587
Time: 2018-07-26
Author: docherty@gmail.com
File Name: stellar/mapper/node_mappers.py
Class Name: GraphSAGENodeMapper
Method Name: __init__


Project Name: deepmipt/DeepPavlov
Commit Name: 3b3f8bd00c463e441600673141ff2de608880c9a
Time: 2018-02-05
Author: yoptar@gmail.com
File Name: deeppavlov/datasets/dialog_dataset.py
Class Name: DialogDataset
Method Name: batch_generator


Project Name: NifTK/NiftyNet
Commit Name: a25f35714b66effc0764add4db72179f0da6d408
Time: 2017-06-15
Author: wenqi.li@ucl.ac.uk
File Name: engine/volume_loader.py
Class Name: VolumeLoaderLayer
Method Name: __initialise_subject_list