bea3a486261d3f6238316224605b684db1e5bca7,Tars/models/vae.py,VAE,__init__,#VAE#Any#Any#Any#Any#Any#Any#,12

Before Change


        self.optimizer = optimizer(params, **optimizer_params)

        // set input_var
        self.input_var = copy(self.encoder.cond_var)
        for distribution in self.other_distributions:
            self.input_var += copy(distribution.cond_var)
        self.input_var = list(set(self.input_var))

    def train(self, train_x):
        self.decoder.train()

After Change


                 regularizer=[],
                 optimizer=optim.Adam,
                 optimizer_params={}):
        super().__init__()

        self.encoder = encoder
        self.decoder = decoder
        self.other_distributions = nn.ModuleList(tolist(other_distributions))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vae.py
Class Name: VAE
Method Name: __init__


Project Name: bashtage/linearmodels
Commit Name: 6361ad4ed147964b65b5ba5ffc4a1a68d7f3f281
Time: 2020-01-23
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: PooledOLS
Method Name: __init__


Project Name: masa-su/pixyz
Commit Name: bea3a486261d3f6238316224605b684db1e5bca7
Time: 2018-10-16
Author: masa@weblab.t.u-tokyo.ac.jp
File Name: Tars/models/vi.py
Class Name: VI
Method Name: __init__