predictor_bonus_base.py 文件源码

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

项目:cpo 作者: jachiam 项目源码 文件源码
def get_bonus(self,path):
        if self._fit_steps > self._yield_zeros_until:
            bonus = self._coeff * self._f_predict(path['observations']).reshape(-1)
            if self._filter_bonuses:
                bonus = bonus  * (np.invert(self._wrapped_constraint.evaluate(path)))
            return bonus
        else:
            return np.zeros(path["rewards"].size)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号