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
]
)
评论列表
文章目录