Skip to content

Commit c0dfa4a

Browse files
williambdeanricardoV94
authored andcommitted
rename in docs
1 parent 3eef176 commit c0dfa4a

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

pymc/distributions/distribution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def update(self, node: Apply) -> dict[Variable, Variable]:
405405
406406
Returns a dictionary with the symbolic expressions required for correct updating
407407
of random state input variables repeated function evaluations. This is used by
408-
`pytensorf.compile_pymc`.
408+
`pytensorf.compile`.
409409
"""
410410
return collect_default_updates_inner_fgraph(node)
411411

pymc/logprob/basic.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def logp(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs) ->
144144
print(rv_logp.eval({value: 0.9, mu: 0.0})) # -1.32393853
145145
146146
# Compile a function for repeated evaluations
147-
rv_logp_fn = pm.compile_pymc([value, mu], rv_logp)
147+
rv_logp_fn = pm.compile([value, mu], rv_logp)
148148
print(rv_logp_fn(value=0.9, mu=0.0)) # -1.32393853
149149
150150
@@ -166,7 +166,7 @@ def logp(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs) ->
166166
print(exp_rv_logp.eval({value: 0.9, mu: 0.0})) # -0.81912844
167167
168168
# Compile a function for repeated evaluations
169-
exp_rv_logp_fn = pm.compile_pymc([value, mu], exp_rv_logp)
169+
exp_rv_logp_fn = pm.compile([value, mu], exp_rv_logp)
170170
print(exp_rv_logp_fn(value=0.9, mu=0.0)) # -0.81912844
171171
172172
@@ -244,7 +244,7 @@ def logcdf(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs)
244244
print(rv_logcdf.eval({value: 0.9, mu: 0.0})) # -0.2034146
245245
246246
# Compile a function for repeated evaluations
247-
rv_logcdf_fn = pm.compile_pymc([value, mu], rv_logcdf)
247+
rv_logcdf_fn = pm.compile([value, mu], rv_logcdf)
248248
print(rv_logcdf_fn(value=0.9, mu=0.0)) # -0.2034146
249249
250250
@@ -266,7 +266,7 @@ def logcdf(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs)
266266
print(exp_rv_logcdf.eval({value: 0.9, mu: 0.0})) # -0.78078813
267267
268268
# Compile a function for repeated evaluations
269-
exp_rv_logcdf_fn = pm.compile_pymc([value, mu], exp_rv_logcdf)
269+
exp_rv_logcdf_fn = pm.compile([value, mu], exp_rv_logcdf)
270270
print(exp_rv_logcdf_fn(value=0.9, mu=0.0)) # -0.78078813
271271
272272
@@ -349,7 +349,7 @@ def logccdf(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs)
349349
print(rv_logccdf.eval({value: 0.9, mu: 0.0})) # -1.5272506
350350
351351
# Compile a function for repeated evaluations
352-
rv_logccdf_fn = pm.compile_pymc([value, mu], rv_logccdf)
352+
rv_logccdf_fn = pm.compile([value, mu], rv_logccdf)
353353
print(rv_logccdf_fn(value=0.9, mu=0.0)) # -1.5272506
354354
355355
"""
@@ -410,7 +410,7 @@ def icdf(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs) ->
410410
print(rv_icdf.eval({value: 0.9, mu: 0.0})) # 1.28155157
411411
412412
# Compile a function for repeated evaluations
413-
rv_icdf_fn = pm.compile_pymc([value, mu], rv_icdf)
413+
rv_icdf_fn = pm.compile([value, mu], rv_icdf)
414414
print(rv_icdf_fn(value=0.9, mu=0.0)) # 1.28155157
415415
416416
@@ -432,7 +432,7 @@ def icdf(rv: Variable, value: Variable | TensorLike, warn_rvs=True, **kwargs) ->
432432
print(exp_rv_icdf.eval({value: 0.9, mu: 0.0})) # 3.60222448
433433
434434
# Compile a function for repeated evaluations
435-
exp_rv_icdf_fn = pm.compile_pymc([value, mu], exp_rv_icdf)
435+
exp_rv_icdf_fn = pm.compile([value, mu], exp_rv_icdf)
436436
print(exp_rv_icdf_fn(value=0.9, mu=0.0)) # 3.60222448
437437
438438
"""

pymc/model/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1638,7 +1638,7 @@ def compile_fn(
16381638
Whether to wrap the compiled function in a PointFunc, which takes a Point
16391639
dictionary with model variable names and values as input.
16401640
Other keyword arguments :
1641-
Any other keyword argument is sent to :py:func:`pymc.pytensorf.compile_pymc`.
1641+
Any other keyword argument is sent to :py:func:`pymc.pytensorf.compile`.
16421642
16431643
Returns
16441644
-------

pymc/sampling/forward.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def draw(
294294
random_seed : int, RandomState or numpy_Generator, optional
295295
Seed for the random number generator.
296296
**kwargs : dict, optional
297-
Keyword arguments for :func:`pymc.pytensorf.compile_pymc`.
297+
Keyword arguments for :func:`pymc.pytensorf.compile`.
298298
299299
Returns
300300
-------
@@ -410,7 +410,7 @@ def sample_prior_predictive(
410410
idata_kwargs : dict, optional
411411
Keyword arguments for :func:`pymc.to_inference_data`
412412
compile_kwargs: dict, optional
413-
Keyword arguments for :func:`pymc.pytensorf.compile_pymc`.
413+
Keyword arguments for :func:`pymc.pytensorf.compile`.
414414
samples : int
415415
Number of samples from the prior predictive to generate. Deprecated in favor of `draws`.
416416
@@ -580,7 +580,7 @@ def sample_posterior_predictive(
580580
Keyword arguments for :func:`pymc.to_inference_data` if ``predictions=False`` or to
581581
:func:`pymc.predictions_to_inference_data` otherwise.
582582
compile_kwargs: dict, optional
583-
Keyword arguments for :func:`pymc.pytensorf.compile_pymc`.
583+
Keyword arguments for :func:`pymc.pytensorf.compile`.
584584
585585
Returns
586586
-------

0 commit comments

Comments
 (0)