2a96754994e2c77b6a4593130f7fae4c4eb506bd,catalyst/rl/offpolicy/algorithms/core_discrete.py,Algorithm,__init__,#Algorithm#Any#Any#Any#Any#Any#Any#Any#Any#,21

Before Change


        self.critic_criterion = CRITERIONS.get_from_params(
            **self._critic_loss_params
        )
        if self.critic_criterion is not None \
                and torch.cuda.is_available():
            self.critic_criterion = self.critic_criterion.cuda()

        // optimizer
        critic_params = UtilsFactory.prepare_optimizable_params(
            self.critic.parameters())
        self._critic_optimizer_params = _copy_params(critic_optimizer_params)
        self.critic_optimizer = OPTIMIZERS.get_from_params(

After Change


        self.critic_scheduler = agent_stuff["scheduler"]
        // grad clipping
        self._critic_grad_clip_params = agent_stuff["grad_clip_params"]
        self.critic_grad_clip_fn = agent_stuff["grad_clip_fn"]

        // other hyperparameters
        self._n_step = n_step
        self._gamma = gamma
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: Scitator/catalyst
Commit Name: 2a96754994e2c77b6a4593130f7fae4c4eb506bd
Time: 2019-04-16
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/algorithms/core_discrete.py
Class Name: Algorithm
Method Name: __init__


Project Name: dnouri/skorch
Commit Name: 935f5ea4fc3ba683fbe25e79443cd108cb091f55
Time: 2018-10-24
Author: marian.tietz@ottogroup.com
File Name: skorch/net.py
Class Name: NeuralNet
Method Name: __setstate__


Project Name: victoresque/pytorch-template
Commit Name: 50c88091cbb82591db49f5328de8069d6d464bc7
Time: 2018-10-02
Author: sunq0313@gmail.com
File Name: base/base_trainer.py
Class Name: BaseTrainer
Method Name: __init__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 4f61d8db82062a3dc8e267c02bf60fb12fabcf3a
Time: 2020-06-09
Author: M.N.Tran@ibm.com
File Name: art/estimators/object_detection/TensorFlowFasterRCNN.py
Class Name: PyTorchFasterRCNN
Method Name: __init__