f6e75e7593d5305b1b6c9ce1a5b2eee8a3c7f38a,tests/infer/test_smcfilter.py,SmokeModel,step,#SmokeModel#Any#Any#,22
Before Change
dist.MultivariateNormal(torch.zeros(self.state_size), torch.eye(self.state_size)))
def step(self, x=None, y=None):
v = pyro.sample("v_{}".format(self.t), dist.Normal(0., 1.))
with pyro.plate("plate", self.plate_size):
w = pyro.sample("w_{}".format(self.t), dist.Normal(v, 1.))
x = pyro.sample("x_{}".format(self.t),
dist.Normal(self.x_mean + w, 1), obs=x)
y = pyro.sample("y_{}".format(self.t),
dist.MultivariateNormal(self.y_mean + w.unsqueeze(-1), torch.eye(self.state_size)),
obs=y)
self.t += 1
After Change
def step(self, state, y=None):
self.t += 1
state["z"] = pyro.sample("z_{}".format(self.t),
dist.Normal(state["z"].matmul(self.A),
self.B*self.sigma_z).to_event(1))
y = pyro.sample("y_{}".format(self.t),
dist.Normal(state["z"][..., 0], self.sigma_y),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: uber/pyro
Commit Name: f6e75e7593d5305b1b6c9ce1a5b2eee8a3c7f38a
Time: 2019-11-15
Author: fritzo@uber.com
File Name: tests/infer/test_smcfilter.py
Class Name: SmokeModel
Method Name: step
Project Name: cornellius-gp/gpytorch
Commit Name: 784d00f0c38fb5fd77aed0a6dffb93cc98a0c990
Time: 2019-01-29
Author: gpleiss@gmail.com
File Name: gpytorch/likelihoods/gaussian_likelihood.py
Class Name: GaussianLikelihood
Method Name: pyro_sample_y
Project Name: cornellius-gp/gpytorch
Commit Name: 157041a86ecda19d43967fc3028d7b48fe17b243
Time: 2019-11-10
Author: gpleiss@gmail.com
File Name: gpytorch/variational/variational_strategy.py
Class Name: VariationalStrategy
Method Name: prior_distribution