Skip to content

Commit 05d19d1

Browse files
authored
DOC: Correct a few grammatical errors (#2097)
* DOC: Correct a few grammatical errors * DOC: derivate -> derivative
1 parent d49f718 commit 05d19d1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

numpyro/contrib/nested_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _(d):
8888

8989
def transform_fn(q):
9090
# NB: icdf is not available yet for Gamma distribution
91-
# so this will raise an NotImplementedError for now.
91+
# so this will raise a NotImplementedError for now.
9292
# We will need scipy.special.gammaincinv, which is not available yet in JAX
9393
# see issue: https://github.com/jax-ml/jax/issues/5350
9494
# TODO: consider wrap jaxns GammaPrior transform implementation

numpyro/distributions/truncated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def alpha_tangent_variable(alpha: ArrayLike) -> ArrayLike:
601601
alpha_tangent = jnp.where(
602602
neq_neg1_mask,
603603
log_x + alpha_tangent_variable(neq_neg1_alpha),
604-
# Approximate derivate with right an lefthand approximation
604+
# Approximate derivative with right and lefthand approximation
605605
log_x
606606
+ (
607607
alpha_tangent_variable(alpha - delta_eq_neg1)

test/contrib/test_enum_elbo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def test_elbo_enumerate_plate_4(outer_obs, inner_obs, scale):
493493
# | \ |
494494
# | b ---> inner_obs N=2 |
495495
# +------------------------+
496-
# This tests two different observations, one outside and one inside an plate.
496+
# This tests two different observations, one outside and one inside a plate.
497497
params = {}
498498
params["probs_a"] = jnp.array([0.4, 0.6])
499499
params["probs_b"] = jnp.array([0.6, 0.4])

0 commit comments

Comments
 (0)