22a25a30d9a7fca19e6ca59c5b6ee82241e126df,theanolm/network.py,Architecture,from_description,#Any#Any#,53

Before Change


                        fields[0]))
                for field in fields[1:]:
                    variable, value = field.split("=")
                    if variable == "type":
                        layer_description["type"] = value
                    elif variable == "name":
                        layer_description["name"] = value
                    elif variable == "input":
                        if "inputs" in layer_description:
                            layer_description["inputs"].append(value)
                        else:
                            layer_description["inputs"] = [value]
                    elif variable == "output":
                        layer_description["output"] = value

                if not "type" in layer_description:
                    raise InputError(""type" is not given in a layer description.")
                if not "name" in layer_description:

After Change


                    elif variable in ("size"):
                        layer_description[variable] = int(value)
                    elif variable in ("network_input", "network_output"):
                        layer_description[variable] = bool(strtobool(value))
                    elif variable == "input":
                        if "inputs" in layer_description:
                            layer_description["inputs"].append(value)
                        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: senarvi/theanolm
Commit Name: 22a25a30d9a7fca19e6ca59c5b6ee82241e126df
Time: 2016-01-18
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Architecture
Method Name: from_description


Project Name: Microsoft/nni
Commit Name: f36b62a91f612342492c4c7c1cfff52b24966537
Time: 2020-04-17
Author: shinyang@microsoft.com
File Name: examples/trials/sklearn/regression/main.py
Class Name:
Method Name: get_model


Project Name: automl/auto-sklearn
Commit Name: c990ac06aafcb8ee6fae7d013e4eb3091012facc
Time: 2014-12-12
Author: feurerm@informatik.uni-freiburg.de
File Name: AutoSklearn/components/classification/liblinear.py
Class Name: LibLinear_SVC
Method Name: fit