Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo committed Jun 4, 2020
1 parent cdc7656 commit 426ce50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pyro/contrib/epidemiology/compartmental.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ def transition(self, params, state, t):
Note that this method is called under multiple different
interpretations, including batched and vectorized interpretations.
During :meth:`generate` this is called to generate a single sample.
During :meth:`heuristic` this is called to generate a batch of sample
During :meth:`heuristic` this is called to generate a batch of samples
for SMC. During :meth:`fit` this is called both in vectorized form
(vectorizing over time) and insequential form (for a single time step);
both forms enumerate over discrete latent variables. During
(vectorizing over time) and in sequential form (for a single time
step); both forms enumerate over discrete latent variables. During
:meth:`predict` this is called to forecast a batch of samples,
conditioned on posterior samples for the time interval
``[0:duration]``.
Expand Down
2 changes: 1 addition & 1 deletion pyro/contrib/epidemiology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class SparseSIRModel(CompartmentalModel):
This model demonstrates how to implement a custom :meth:`compute_flows`
method. A custom method is needed in this model because inhabitants of the
``S`` compartment can transition to both the ``I`` and ``o`` compartments,
``S`` compartment can transition to both the ``I`` and ``O`` compartments,
allowing duplication.
:param int population: Total ``population = S + I + R``.
Expand Down

0 comments on commit 426ce50

Please sign in to comment.