296b28c1a5b1fb18732d1ed0f466b3761e50ebef,tests/contrib/gp/test_parameterized.py,,test_inference,#,102

Before Change


    x_train = torch.rand(100)
    y_train = target_a * x_train + torch.rand(100) * 0.001
    linear = Linear(torch.tensor(1.))
    linear.set_prior("a", dist.Normal(0, 10))
    linear.autoguide("a", dist.Normal)

    def model(x, y):
        linear.set_mode("model")

After Change


    x_train = torch.rand(100)
    y_train = target_a * x_train + torch.rand(100) * 0.001
    linear = Linear(torch.tensor(1.))
    linear.a = PyroSample(dist.Normal(0, 10))
    linear.autoguide("a", dist.Normal)

    def model(x, y):
        linear.set_mode("model")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: uber/pyro
Commit Name: 296b28c1a5b1fb18732d1ed0f466b3761e50ebef
Time: 2019-11-14
Author: fehiepsi@gmail.com
File Name: tests/contrib/gp/test_parameterized.py
Class Name:
Method Name: test_inference


Project Name: uber/pyro
Commit Name: 296b28c1a5b1fb18732d1ed0f466b3761e50ebef
Time: 2019-11-14
Author: fehiepsi@gmail.com
File Name: tests/contrib/gp/test_models.py
Class Name:
Method Name: test_hmc


Project Name: uber/pyro
Commit Name: 296b28c1a5b1fb18732d1ed0f466b3761e50ebef
Time: 2019-11-14
Author: fehiepsi@gmail.com
File Name: tests/contrib/gp/test_parameterized.py
Class Name:
Method Name: test_nested_parameterized