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

Before Change



        // Ensure features are available:
        nodes_have_features = all(
            ["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.")

After Change


                )
            self.feature_size = feature_size

        elif len(feature_sizes) == 1:
            self.feature_size = int(feature_sizes.pop())

        else:
            raise RuntimeError(
                "Feature sizes in nodes inconsistent: "
                "found feature sizes: {}".format(feature_sizes)
            )

    def __len__(self):
        "Denotes the number of batches per epoch"
        return int(np.ceil(self.data_size / self.batch_size))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree


Project Name: stellargraph/stellargraph
Commit Name: bcf6d0a188ee9ba868c1de01c347f813e3aaa35c
Time: 2020-01-22
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/mapper/full_batch_generators.py
Class Name: FullBatchNodeGenerator
Method Name: __init__