You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These files implement Pareto smoothed importance sampling (PSIS) and
PSIS leave-one-out cross-validation for Matlab/Octave and Python
(Python port made by Tuomas Sivula).
These code are not maintained and are here for historical
reference. Instead of these, use well maintained implementations
available for R, Python, and Julia as listed below.
R
PSIS and PSIS-LOO are implemented in the loo R package, which is also available from CRAN.
PSIS and all Pareto $\hat{k}$ diagnostics are implemented in the posterior R package, which is also available from CRAN.
Python
PSIS, PSIS-LOO, and Pareto $\hat{k}$ diagnostics are implemented in the ArviZ.py package.
In this repo
'psis.py' - Includes the following functions in a Python (Numpy) module
psislw - Pareto smoothing of the log importance weights
Aki Vehtari, Daniel Simpson, Andrew Gelman, Yuling Yao, and Jonah Gabry (2024). Pareto smoothed importance sampling. Journal of Machine Learning Research, accepted for publication. arXiv preprint arXiv:1507.02646
Jin Zhang & Michael A. Stephens (2009) A New and Efficient
Estimation Method for the Generalized Pareto Distribution,
Technometrics, 51:3, 316-325, DOI: 10.1198/tech.2009.08017
About
Pareto smoothed importance sampling (PSIS) and PSIS leave-one-out cross-validation for Python and Matlab/Octave