def weighted_kde(Bn, conf):
# N.B. apply WKDE function to the instance multiplied by its confindence value
weighted_ins = np.vstack([conf[i] * B.data() for i, B in enumerate(Bn)])
return stats.gaussian_kde(weighted_ins.T)
评论列表
文章目录