06945cbd6dffb01a07af4239cf5c1753c8646ec9,reagent/training/world_model/mdnrnn_trainer.py,MDNRNNTrainer,__init__,#MDNRNNTrainer#Any#Any#Any#,23

Before Change


    ):
        self.memory_network = memory_network
        self.params = params
        self.optimizer = torch.optim.Adam(
            self.memory_network.mdnrnn.parameters(), lr=params.learning_rate
        )
        self.minibatch = 0
        self.minibatch_size = params.minibatch_size
        self.cum_loss: Deque[float] = deque([], maxlen=cum_loss_hist)
        self.cum_bce: Deque[float] = deque([], maxlen=cum_loss_hist)

After Change


        params: MDNRNNTrainerParameters,
        cum_loss_hist: int = 100,
    ):
        super().__init__()
        self.memory_network = memory_network
        self.params = params

    def configure_optimizers(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: facebookresearch/Horizon
Commit Name: 06945cbd6dffb01a07af4239cf5c1753c8646ec9
Time: 2021-03-15
Author: czxttkl@fb.com
File Name: reagent/training/world_model/mdnrnn_trainer.py
Class Name: MDNRNNTrainer
Method Name: __init__


Project Name: facebookresearch/Horizon
Commit Name: 766cdcc4d598d2b1994fb878f2d39c805732be58
Time: 2021-04-07
Author: gji@fb.com
File Name: reagent/training/world_model/seq2reward_trainer.py
Class Name: Seq2RewardTrainer
Method Name: __init__


Project Name: dpressel/mead-baseline
Commit Name: b86c4b10a1ddf9369db260d1a599670e844795b2
Time: 2018-11-02
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/torchy.py
Class Name: NoamOpt
Method Name: __init__