From 8e8793f2fcacd5d918f4e4bd0dcc3ade0f9d34f1 Mon Sep 17 00:00:00 2001 From: inagaki-keisuke Date: Fri, 17 May 2024 00:34:21 +0900 Subject: [PATCH 1/2] Updated pymc.step_methods.slicer.Slice docstring --- pymc/step_methods/slicer.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pymc/step_methods/slicer.py b/pymc/step_methods/slicer.py index 00329ba7a4f..8787480637c 100644 --- a/pymc/step_methods/slicer.py +++ b/pymc/step_methods/slicer.py @@ -37,14 +37,16 @@ class Slice(ArrayStepShared): Parameters ---------- - vars: list + vars : list, optional List of value variables for sampler. - w: float - Initial width of slice (Defaults to 1). - tune: bool - Flag for tuning (Defaults to True). - model: PyMC Model - Optional model for sampling step. Defaults to None (taken from context). + w : float, default 1.0 + Initial width of slice. + tune : bool, default True + Flag for tuning. + model : PyMC Model, optional + Optional model for sampling step. It will be taken from the context if not provided. + iter_limit : int, default np.inf + Maximum number of iterations for the slice sampler. """ From 4b6b8b99a5f38ef454b21285442522e5ef5582a7 Mon Sep 17 00:00:00 2001 From: inagaki-keisuke Date: Fri, 17 May 2024 00:50:01 +0900 Subject: [PATCH 2/2] Updated PyMC model to Model --- pymc/step_methods/slicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymc/step_methods/slicer.py b/pymc/step_methods/slicer.py index 8787480637c..3a9d90800a4 100644 --- a/pymc/step_methods/slicer.py +++ b/pymc/step_methods/slicer.py @@ -43,7 +43,7 @@ class Slice(ArrayStepShared): Initial width of slice. tune : bool, default True Flag for tuning. - model : PyMC Model, optional + model : Model, optional Optional model for sampling step. It will be taken from the context if not provided. iter_limit : int, default np.inf Maximum number of iterations for the slice sampler.