model.py 文件源码

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

项目:lain 作者: llllllllll 项目源码 文件源码
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])
        ])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号