9de86aeb8e02e50d79fd859d23104cdb4e950bf3,stellargraph/layer/graphsage.py,DirectedGraphSAGE,_get_sizes_from_keywords,#DirectedGraphSAGE#,1116

Before Change


             kwargs: The additional keyword arguments.
        
        self.in_samples = kwargs.get("in_samples")
        self.out_samples = kwargs.get("out_samples")
        self.input_feature_size = kwargs.get("input_dim")
        if (
            self.in_samples is None
            or self.out_samples is None
            or self.input_feature_size is None
        ):
            raise ValueError(
                "If generator is not provided, in_samples, out_samples and input_dim must be specified."
            )
        if len(self.in_samples) != self.max_hops:
            raise ValueError(
                "Mismatched lengths: in-node sample sizes {} versus layer sizes {}".format(
                    self.in_samples, self.layer_sizes

After Change


        Args:
             kwargs: The additional keyword arguments.
        
        try:
            self.in_samples = kwargs["in_samples"]
            self.out_samples = kwargs["out_samples"]
            self.input_feature_size = kwargs["input_dim"]
            self.multiplicity = kwargs["multiplicity"]

        except KeyError:
            raise KeyError(
                "If generator is not provided, in_samples, out_samples, "
                "input_dim, and multiplicity must be specified."
            )

        if len(self.in_samples) != self.max_hops:
            raise ValueError(
                "Mismatched lengths: in-node sample sizes {} versus layer sizes {}".format(
                    self.in_samples, self.layer_sizes
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: stellargraph/stellargraph
Commit Name: 9de86aeb8e02e50d79fd859d23104cdb4e950bf3
Time: 2019-10-08
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/graphsage.py
Class Name: DirectedGraphSAGE
Method Name: _get_sizes_from_keywords


Project Name: mne-tools/mne-python
Commit Name: 508cfbc13bc2e068efb3bf8b7999b83047851729
Time: 2020-05-29
Author: larson.eric.d@gmail.com
File Name: mne/io/meas_info.py
Class Name: Info
Method Name: __init__


Project Name: regel/loudml
Commit Name: e57e91a650fe62f1033da5aa66ff114a67cf69e9
Time: 2018-05-18
Author: vianney@redmintnetwork.fr
File Name: loudml/loudml/storage.py
Class Name: Storage
Method Name: load_model_hooks