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

Before Change


        
        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

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: 8

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: tryolabs/luminoth
Commit Name: d560f8c93fa1819b03b8ff79d406d06166cdadd6
Time: 2017-10-20
Author: iangtayler@gmail.com
File Name: luminoth/eval.py
Class Name:
Method Name: evaluate


Project Name: analysiscenter/batchflow
Commit Name: c3b7b7ffa9f18fa80bbfec86edf56b6db02e075b
Time: 2019-03-28
Author: rhudor@gmail.com
File Name: batchflow/named_expr.py
Class Name: C
Method Name: get