def predict_beatmap(self, beatmap, *mods, **mods_scalar):
"""Predict the user's accuracy for the given beatmap.
Parameters
----------
beatmap : Beatmap
The map to predict the performance of.
*mods
A sequence of mod dictionaries to predict for.
**mods_dict
Mods to predict for.
Returns
-------
accuracy : float
The user's expected accuracy in the range [0, 1].
"""
for mod_name in 'hidden', 'hard_rock', 'half_time', 'double_time':
mods_scalar.setdefault(mod_name, False)
return self.predict([
(beatmap, ms) for ms in chain(mods, [mods_scalar])
])
评论列表
文章目录