ee179f7da155c3cb8129b954db828906886ad4e4,keras/layers/core.py,AutoEncoder,get_output,#AutoEncoder#Any#,402

Before Change


            return self._get_hidden(train)

        if self.tie_weights:
            for e,d in zip(self.encoders, self.decoders):
                map(self._tranpose_weights, e.get_weights(), d.get_weights())

        return self.decoders[-1].get_output(train)

    def get_config(self):
        return {"name":self.__class__.__name__,

After Change



        if self.tie_weights:
            encoder_params = self.encoder.get_weights()
            decoder_params = self.decoder.get_weights()
            for dec_param, enc_param in zip(decoder_params, encoder_params):
                if len(dec_param.shape) > 1:
                    enc_param = dec_param.T
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: ee179f7da155c3cb8129b954db828906886ad4e4
Time: 2015-06-08
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: get_output


Project Name: adalca/neuron
Commit Name: 60027b1801ee16340f00183b3f3c46468117c8f1
Time: 2017-04-21
Author: adalca@turmeric.csail.mit.edu
File Name: neuron/models.py
Class Name:
Method Name: copy_weights


Project Name: keras-team/keras
Commit Name: 36ac91f0576b2295df1f3f8b23c305d69698a0ff
Time: 2017-02-15
Author: francois.chollet@gmail.com
File Name: keras/models.py
Class Name: Sequential
Method Name: get_weights