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

Before Change


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

                layers.append(layer_description)

After Change


                    if variable in ("type", "name"):
                        layer_description[variable] = value
                    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":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: senarvi/theanolm
Commit Name: adbea90fe1929cb35edf1327e2505c4133e6be04
Time: 2016-01-18
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Network
Method Name: __init__


Project Name: senarvi/theanolm
Commit Name: f6c9037f23f9cab7d27b535ed9b972ac859983eb
Time: 2015-12-23
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Architecture
Method Name: from_description


Project Name: senarvi/theanolm
Commit Name: 78bceca9f73e03e9c4fb156ce44fa6d010720704
Time: 2017-06-06
Author: peter@smitmail.eu
File Name: theanolm/scoring/latticedecoder.py
Class Name: LatticeDecoder
Method Name: decode