Package: pHMC 0.1.0
pHMC: Proximal Hamiltonian Monte Carlo for Non-Smooth Bayesian Inference
Implements the Proximal Hamiltonian Monte Carlo (p-HMC) algorithm for Bayesian sampling and estimation from non-differentiable target densities. The method decomposes a target potential into a smooth component f(x) and a non-smooth convex component g(x), approximating only g(x) via its Moreau-Yosida envelope while retaining exact gradient information for f(x). This approach, based on the methodology described in Shukla, Vats, and Chi (2025) <doi:10.48550/arXiv.2510.22252>, yields improved Hamiltonian conservation over full-potential smoothing approaches. The package provides generalized routines accepting user-defined probability density functions, log-likelihoods, priors, and proximal operators, together with automated hyperparameter tuning for the Moreau-Yosida regularization parameter, Markov chain Monte Carlo convergence diagnostics, effective sample size computation, and model evaluation metrics including the Akaike information criterion and Bayesian information criterion.
Authors:
pHMC_0.1.0.tar.gz
pHMC_0.1.0.zip(r-4.7-any)pHMC_0.1.0.zip(r-4.6-any)pHMC_0.1.0.zip(r-4.5-any)
pHMC_0.1.0.tgz(r-4.6-any)pHMC_0.1.0.tgz(r-4.5-any)
pHMC_0.1.0.tar.gz(r-4.7-any)pHMC_0.1.0.tar.gz(r-4.6-any)
pHMC_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
pHMC/json (API)
| # Install 'pHMC' in R: |
| install.packages('pHMC', repos = c('https://shikhartyagi.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:70429eb55b. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 145 | ||
| source / vignettes | OK | 283 | ||
| linux-release | OK | 113 | ||
| macos-release | OK | 104 | ||
| macos-oldrel | OK | 117 | ||
| windows-devel | OK | 75 | ||
| windows-release | OK | 76 | ||
| windows-oldrel | OK | 74 | ||
| wasm-release | OK | 100 |
Exports:grad_my_envelopephmcphmc_lassophmc_logisticphmc_matrixphmc_tuneprox_elastic_netprox_l1prox_l2prox_nuclear
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Generalized Proximal Hamiltonian Monte Carlo Sampler and Estimator | phmc |
| S3 Methods for Proximal Hamiltonian Monte Carlo Objects | coef.phmc logLik.phmc phmc_methods plot.phmc print.phmc print.summary.phmc summary.phmc vcov.phmc |
| Hyperparameter Tuning for Moreau-Yosida Regularization Parameter | phmc_tune |
| Proximal Mapping Operators and Moreau-Yosida Envelope Gradients | grad_my_envelope proximal_operators prox_elastic_net prox_l1 prox_l2 prox_nuclear |
| Specialized High-Level Estimators Using Proximal HMC | phmc_lasso phmc_logistic phmc_matrix specialized_models |