'kernel density esimation bandwidth in Python

i want to find the optimal way to get the best dynamic bandwidth. The Silverman and Scott method are not that optimal and the problem with the Sheater&Jones method is, that it's not in a trusted way available.

Is there a way to calculate the optimal bandwidth for my kde, that works in a way like the Sheater&Jones calculation is doing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source