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:Shikhar Tyagi [aut, cre], Arvind Pandey [aut], Bhupendra Singh [aut], Vrijesh Tripathi [aut]

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'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.00 score 224 downloads 10 exports 2 dependencies

Last updated from:70429eb55b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK145
source / vignettesOK283
linux-releaseOK113
macos-releaseOK104
macos-oldrelOK117
windows-develOK75
windows-releaseOK76
windows-oldrelOK74
wasm-releaseOK100

Exports:grad_my_envelopephmcphmc_lassophmc_logisticphmc_matrixphmc_tuneprox_elastic_netprox_l1prox_l2prox_nuclear

Dependencies:latticeMatrix

Readme and manuals

Help Manual

Help pageTopics
Generalized Proximal Hamiltonian Monte Carlo Sampler and Estimatorphmc
S3 Methods for Proximal Hamiltonian Monte Carlo Objectscoef.phmc logLik.phmc phmc_methods plot.phmc print.phmc print.summary.phmc summary.phmc vcov.phmc
Hyperparameter Tuning for Moreau-Yosida Regularization Parameterphmc_tune
Proximal Mapping Operators and Moreau-Yosida Envelope Gradientsgrad_my_envelope proximal_operators prox_elastic_net prox_l1 prox_l2 prox_nuclear
Specialized High-Level Estimators Using Proximal HMCphmc_lasso phmc_logistic phmc_matrix specialized_models