compose.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:foil 作者: portfoliome 项目源码 文件源码
def create_quantiles(items: Sequence, lower_bound, upper_bound):
    """Create quantile start and end boundaries."""

    interval = (upper_bound - lower_bound) / len(items)

    quantiles = ((g, (x - interval, x)) for g, x in
                 zip(items, accumulate(repeat(interval, len(items)))))

    return quantiles
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号