2a8c7d1976fc74ff9f1075af31f4b9d0482bee53,tests/ops/test_welford.py,,test_welford_dense,#Any#Any#,39
Before Change
samples = []
for _ in range(n_samples):
sample = dist.sample()
samples.append(sample)
w.update(sample)
with optional(pytest.raises(RuntimeError), n_samples == 1):
estimates = w.get_covariance(regularize=False).data.cpu().numpy()
After Change
cov = torch.randn(dim_size, dim_size)
cov = torch.mm(cov, cov.t())
dist = torch.distributions.MultivariateNormal(loc=loc, covariance_matrix=cov)
samples = dist.sample(torch.Size([n_samples]))
for sample in samples:
w.update(sample)
with optional(pytest.raises(RuntimeError), n_samples == 1):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: uber/pyro
Commit Name: 2a8c7d1976fc74ff9f1075af31f4b9d0482bee53
Time: 2020-05-15
Author: fehiepsi@gmail.com
File Name: tests/ops/test_welford.py
Class Name:
Method Name: test_welford_dense
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: fdfbd05f6a3e9b5bb1d73302180b4ecf260ff3d2
Time: 2017-11-17
Author: max.lapan@gmail.com
File Name: ch08/run_model.py
Class Name:
Method Name:
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a693073cd01fffa7cb3f018b7221459703119f9
Time: 2017-11-30
Author: max.lapan@gmail.com
File Name: ch09/01_cartpole_dqn.py
Class Name:
Method Name: