codecov[bot]: # [Codecov](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52?src=pr&el=h1) Report
> Merging [#52](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52?src=pr&el=desc) into [master](https://codecov.io/gh/eigenfoo/littlemcmc/commit/0c75163e2afe5aff0cdcce17c60c7998d2ace91d&el=desc) will **increase** coverage by `0.68%`.
> The diff coverage is `100.00%`.

[![Impacted file tree graph](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52/graphs/tree.svg?width=650&height=150&src=pr&token=7TboOy71MZ)](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   82.58%   83.26%   +0.68%     
==========================================
  Files          14       14              
  Lines        1022     1028       +6     
==========================================
+ Hits          844      856      +12     
+ Misses        178      172       -6     
```


| [Impacted Files](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [littlemcmc/sampling.py](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52/diff?src=pr&el=tree#diff-bGl0dGxlbWNtYy9zYW1wbGluZy5weQ==) | `87.12% <100.00%> (+10.04%)` | :arrow_up: |
| [tests/test\_sampling.py](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52/diff?src=pr&el=tree#diff-dGVzdHMvdGVzdF9zYW1wbGluZy5weQ==) | `100.00% <100.00%> (ø)` | |
| [littlemcmc/base\_hmc.py](https://codecov.io/gh/eigenfoo/littlemcmc/pull/52/diff?src=pr&el=tree#diff-bGl0dGxlbWNtYy9iYXNlX2htYy5weQ==) | `75.00% <0.00%> (-3.58%)` | :arrow_down: |

diff --git a/littlemcmc/sampling.py b/littlemcmc/sampling.py
index 2c13ed8..87d046a 100644
--- a/littlemcmc/sampling.py
+++ b/littlemcmc/sampling.py
@@ -248,8 +248,10 @@ def init_nuts(
           on the variance of the tuning samples.
         * jitter+adapt_diag : Same as `'adapt_diag'`, but use uniform jitter in [-1, 1]
           as starting point in each chain.
-        * adapt_full: Sample as `'adapt_diag'`, but adapts a dense mass matrix using the
+        * adapt_full: Same as `'adapt_diag'`, but adapts a dense mass matrix using the
           sample covariances.
+        * jitter+adapt_full: Same as `'adapt_full'`, but use uniform jitter in [-1, 1]
+          as starting point in each chain.
     **kwargs: keyword arguments
         Extra keyword arguments are forwarded to littlemcmc.NUTS.
 
@@ -290,6 +292,11 @@ def init_nuts(
         mean = start
         cov = np.eye(size)
         potential = QuadPotentialFullAdapt(size, mean, cov, 10)
+    elif init == "jitter+adapt_full":
+        start = 2 * np.random.rand(size) - 1
+        mean = start
+        cov = np.eye(size)
+        potential = QuadPotentialFullAdapt(size, mean, cov, 10)
     else:
         raise ValueError("Unknown initializer: {}.".format(init))
 
diff --git a/requirements-dev.txt b/requirements-dev.txt
index abd5ec6..8cae25b 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,3 +1,4 @@
+# Development tools
 black
 jupyter
 mypy
@@ -10,7 +11,6 @@ pytest-html
 # Packaging requirements
 setuptools
 twine
-wheel
 
 # Sphinx requirements
 numpydoc
diff --git a/requirements.txt b/requirements.txt
index 5fcd45a..e48c91e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,4 @@
+wheel
 joblib>=0.14.1
 numpy
 scipy>=0.18.1

New commits to pymc3/step_methods/hmc/
> This is an auto-generated issue, triggered by the `even-with-pymc3` workflow.

There have been new commits to `pymc3/step_methods/hmc/` since yesterday: please see
[the latest run of the `even-with-pymc3` GitHub Action](https://github.com/eigenfoo/littlemcmc/actions?query=workflow%3Aeven-with-pymc3)
and consider if these commits are worth mirroring in `littlemcmc`.


diff --git a/tests/test_sampling.py b/tests/test_sampling.py
index 1892c73..d47e49f 100644
--- a/tests/test_sampling.py
+++ b/tests/test_sampling.py
@@ -13,17 +13,19 @@
 #  limitations under the License.
 
 import numpy as np
+import pytest
 import littlemcmc as lmc
 from test_utils import logp_dlogp_func
 
 
-def test_init_nuts():
-    size = 1
-    init = "auto"
-    random_seed = 42
-    foo = lmc.init_nuts(
-        logp_dlogp_func=logp_dlogp_func, size=size, init=init, random_seed=random_seed,
-    )
+@pytest.mark.parametrize(
+    "method", ["adapt_diag", "jitter+adapt_diag", "adapt_full", "jitter+adapt_full",],
+)
+def test_init_nuts(method):
+    start, step = lmc.init_nuts(logp_dlogp_func=logp_dlogp_func, size=1, init=method)
+    assert isinstance(start, np.ndarray)
+    assert len(start) == 1
+    assert isinstance(step, lmc.NUTS)
 
 
 def test_hmc_sampling_runs():

pip install -e .
parse_log_pytest
requirements.txt
pytest
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
joblib==1.1.1
-e git+https://github.com/eigenfoo/littlemcmc.git@0c75163e2afe5aff0cdcce17c60c7998d2ace91d#egg=littlemcmc
numpy==1.19.5
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pytest==7.0.1
scipy==1.5.4
tomli==1.2.3
tqdm==4.64.1
typing_extensions==4.1.1
zipp==3.6.0

name: littlemcmc
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - joblib==1.1.1
      - numpy==1.19.5
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - scipy==1.5.4
      - tomli==1.2.3
      - tqdm==4.64.1
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/littlemcmc

tests/test_sampling.py::test_init_nuts[jitter+adapt_full]
tests/test_sampling.py::test_init_nuts[adapt_diag] tests/test_sampling.py::test_init_nuts[jitter+adapt_diag] tests/test_sampling.py::test_init_nuts[adapt_full] tests/test_sampling.py::test_hmc_sampling_runs tests/test_sampling.py::test_nuts_sampling_runs tests/test_sampling.py::test_multiprocess_sampling_runs tests/test_sampling.py::test_hmc_recovers_1d_normal tests/test_sampling.py::test_nuts_recovers_1d_normal
littlemcmc/sampling.py requirements-dev.txt requirements.txt
littlemcmc/sampling.py requirements-dev.txt requirements.txt