manual_features.py 文件源码

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

项目:lain 作者: llllllllll 项目源码 文件源码
def extract_feature_array(beatmaps_and_mods):
    """Extract all features from a beatmap.

    Parameters
    ----------
    beatmaps_and_mods : list[Beatmap, dict[str, bool]]
        The beatmaps and mod information to extract features from.

    Returns
    -------
    features : np.ndarray[float64]
        The features as an array.
    """
    cache = {}
    return np.array(
        [
            [
                snd for
                fst, snd in sorted(
                    extract_features(
                        beatmap,
                        **mods,
                        _cache=cache,
                    ).items(),
                    key=first,
                )
            ]
            for beatmap, mods in beatmaps_and_mods
        ]
    )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号