cmr.median_bandwidth

Guide & worked example · Source

cmr.median_bandwidth(x, y=None)

Median-heuristic bandwidth for an RBF kernel.

Zero distances are ignored when possible so repeated rows do not collapse the bandwidth to zero.