14d34e59b208800c355c68118ee7f41947364905,ch07/lib/dqn_model.py,NoisyLinear,sample_noise,#NoisyLinear#,32

Before Change



    def sample_noise(self):
        self.epsilon_weight = torch.randn(self.out_features, self.in_features)
        self.epsilon_bias = torch.randn(self.out_features)

    def remove_noise(self):
        self.epsilon_weight = torch.zeros(self.out_features, self.in_features)
        self.epsilon_bias = torch.zeros(self.out_features)

After Change


                        self.bias + self.sigma_bias * Variable(self.epsilon_bias))

    def sample_noise(self):
        torch.randn(self.epsilon_weight.size(), out=self.epsilon_weight)
        torch.randn(self.epsilon_bias.size(), out=self.epsilon_bias)


class DQN(nn.Module):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 14d34e59b208800c355c68118ee7f41947364905
Time: 2017-10-27
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: NoisyLinear
Method Name: sample_noise


Project Name: cornellius-gp/gpytorch
Commit Name: 85e8cf0742048b55a20418441e4e9e51444c3f54
Time: 2019-10-25
Author: balandat@fb.com
File Name: gpytorch/likelihoods/multitask_gaussian_likelihood.py
Class Name: _MultitaskGaussianLikelihoodBase
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: f7b10102a3a0b08272634347ff3a65efd3df18ce
Time: 2019-04-04
Author: gpleiss@gmail.com
File Name: test/functions/test_inv_matmul.py
Class Name: TestInvMatmulNonBatch
Method Name: test_inv_matmul_multiple_vecs