eb8b70c825ef3e02818cbfa95c0f8a9ec4184275,theanolm/network.py,Network,__init__,#Network#Any#Any#Any#Any#,168

Before Change


        self.layers = OrderedDict()
        self.layers["X"] = self.network_input
        for layer_description in architecture.layers:
            layer_type = layer_description["type"]
            layer_name = layer_description["name"]
            inputs = [ self.layers[x] for x in layer_description["inputs"] ]
            if layer_description["output"] == "Y":
                output_size = dictionary.num_classes()
            elif layer_description["output"] == "-":
                output_size = sum([ x.output_size for x in inputs ])
            else:
                output_size = int(layer_description["output"])
            self.layers[layer_name] = create_layer(layer_type,
                                                   layer_name,
                                                   inputs,
                                                   output_size,
                                                   self,
                                                   profile=profile)
            if layer_description["output"] == "Y":
                self.output_layer = self.layers[layer_name]
        if self.output_layer is None:
            raise InputError("None of the layers in architecture description "

After Change


                    if value == "Y":
                        value = dictionary.num_classes()
                    else:
                        value = int(value)
                    layer_options["output_size"] = value
                else:
                    layer_options[variable] = value
            layer = create_layer(layer_options, self, profile=profile)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: senarvi/theanolm
Commit Name: eb8b70c825ef3e02818cbfa95c0f8a9ec4184275
Time: 2015-12-25
Author: seppo.git@marjaniemi.com
File Name: theanolm/network.py
Class Name: Network
Method Name: __init__


Project Name: NifTK/NiftyNet
Commit Name: 984d17836d7a6240942cd44f2f61c92a427bb9bb
Time: 2018-04-24
Author: z.eaton-rosen@ucl.ac.uk
File Name: niftynet/layer/crop.py
Class Name: CropLayer
Method Name: layer_op


Project Name: eriklindernoren/Keras-GAN
Commit Name: 6f90dac721f38b365ad87e1633860f53b9ca44db
Time: 2018-03-14
Author: eriklindernoren@gmail.com
File Name: discogan/data_loader.py
Class Name: DataLoader
Method Name: load_data