pythonpymc3

Acceptance-rate in PyMC3 (Metropolis-Hastings)


Does anyone know how I can see the final acceptance-rate in PyMC3 (Metropolis-Hastings) ? Or in general, how can I see all the information that pymc3.sample() returns ?

Thanks


Solution

  • I checked for the NUTS algorithm, and found the solution from here pymc3 forum.

    trace.mean_tree_accept.mean()