# Turing.jl - NUTS gets stuck in "The current proposal will be rejected... isfinite.((θ, r, ℓπ, ℓκ)) = (true, true, false, true)"

**URL:** <https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428>\
**Category:** Probabilistic Programming\
**Tags:** turing\
**Created:** [May 21, 2022, 7:17pm UTC](https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428 "2022-05-21T19:17:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [May 22, 2022, 5:23pm UTC](https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428/4 "2022-05-22T17:23:03Z")

</div>

Indeed, that its very strange. I wonder what happens if you reject samples of **aᵖ** which are close to zero?

The documentation shows that you can reject a sample as follows:

```julia
using Turing
using LinearAlgebra

@model function demo(x)
    m ~ MvNormal(zero(x), I)
    if dot(m, x) < 0
        Turing.@addlogprob! -Inf
        # Exit the model evaluation early
        return
    end

    x ~ MvNormal(m, I)
    return
end

```

My suspicion is that if the sampler gets stuck at the boundary you set for rejecting samples (say .0001) , there might be challenging trade-offs due to the ratio of parameters in the definitions of the expected and variance of RT.

---

_[View the full topic](https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428)._
