Last active
February 21, 2026 11:05
-
-
Save tillahoffmann/f844bce2ec264c1c8cb5 to your computer and use it in GitHub Desktop.
Weighted kernel density estimation based on `scipy.stats.gaussian_kde`.
My hat off to you sir. Thank you for sharing this. Extremely helpful.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful code. I think a
may be missing. Without it, setting the
bw_methodto a scalar (e.g.0.1and notscott) results in an exception.