utils.py 文件源码

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

项目:triage 作者: dssg 项目源码 文件源码
def feature_list(feature_dictionary):
    """Convert a feature dictionary to a sorted list.

    Args: feature_dictionary (dict)

    Returns: sorted list of feature names

    """
    return sorted(
        functools.reduce(
            operator.concat,
            (feature_dictionary[key] for key in feature_dictionary.keys())
        )
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号