baf110d82f60c51a5680e728cd3c5c6d3536117d,gpflow/params.py,ParamList,__init__,#ParamList#Any#Any#,494

Before Change


        if not isinstance(list_of_params, list):
            raise ValueError("Not acceptable argument type for list_of_params.")
        for i, item in enumerate(list_of_params):
            if not isinstance(item, (Param, Parameterized)):
                raise ValueError("Not acceptable item type: {0}.".format(type(item)))
            item.set_parent(self)
            item.set_name("{index}/{name}".format(index=i, name=item.name))
        self._list = list_of_params

After Change


                try:
                    item = Param(_valid_input(item))
                except ValueError:
                    raise ValueError("A list item must be either parameter, "
                                     "tensorflow variable, an array or a scalar.")
            item.set_parent(self)
            item.set_name("{index}/{name}".format(index=i, name=item.name))
        self._list = list_of_params
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: GPflow/GPflow
Commit Name: baf110d82f60c51a5680e728cd3c5c6d3536117d
Time: 2017-09-24
Author: art.art.v@gmail.com
File Name: gpflow/params.py
Class Name: ParamList
Method Name: __init__


Project Name: stellargraph/stellargraph
Commit Name: 9098d0124bdca4c5484bc29ce6966fb6b98678e7
Time: 2020-03-09
Author: 33508488+kjun9@users.noreply.github.com
File Name: stellargraph/core/utils.py
Class Name:
Method Name: GCN_Aadj_feats_op


Project Name: uber/pyro
Commit Name: 741108695943be12c93ff96a3cb964ddcbeb1563
Time: 2020-02-10
Author: npradhan@uber.com
File Name: pyro/infer/reparam/neutra.py
Class Name: NeuTraReparam
Method Name: __call__