fe9540ff6e0ad1aebca9bbc951b46289b4a2f9b2,pyro/contrib/epidemiology/compartmental.py,CompartmentalModel,_sequential_model,#CompartmentalModel#,648
Before Change
auxiliary, non_compartmental = self._sample_auxiliary()
// Reshape to accommodate the time_plate below.
if self.is_regional:
auxiliary = auxiliary.squeeze(1)
for name, value in non_compartmental.items():
non_compartmental[name] = value.squeeze(1)
assert auxiliary.shape == (num_samples, 1, C, T) + R_shape
aux = [aux.unbind(2) for aux in auxiliary.unbind(2)]
// Sequentially transition.
After Change
// Reshape to accommodate the time_plate below.
assert auxiliary.shape == (num_samples, C, T) + R_shape, auxiliary.shape
aux = [aux.unbind(2) for aux in auxiliary .unsqueeze(1 ).unbind(2)]
// Sequentially transition.
curr = self.initialize(params)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: uber/pyro
Commit Name: fe9540ff6e0ad1aebca9bbc951b46289b4a2f9b2
Time: 2020-06-16
Author: fritzo@uber.com
File Name: pyro/contrib/epidemiology/compartmental.py
Class Name: CompartmentalModel
Method Name: _sequential_model
Project Name: pyprob/pyprob
Commit Name: 992401f82501726c593ef635b2d124f45ee20707
Time: 2018-04-09
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/distributions.py
Class Name: Poisson
Method Name: log_prob
Project Name: facebookresearch/Horizon
Commit Name: 16ba3819bbfde4e49711b51ccd357cb92d1de386
Time: 2020-05-21
Author: kittipat@fb.com
File Name: reagent/gym/preprocessors/default_preprocessors.py
Class Name: RecsimObsPreprocessor
Method Name: __call__