mcmc_sampler.py 文件源码

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

项目:bnn-analysis 作者: myshkov 项目源码 文件源码
def __repr__(self):
        s = super().__repr__()
        s += f'Chains num: {self.chains_num}\n'
        s += f'Batch size: {self.batch_size}\n'
        s += f'Position size: {self.position_size}\n'
        s += f'Precisions: noise = {self.noise_precision}, weights = {self.weights_precision}\n'
        s += f'Resample precision: noise = {self.resample_noise_precision}, '
        s += f'weights = {self.resample_weights_precision}\n'
        s += f'Burn in: {self.burn_in}\n'
        s += f'Seek step sizes: {self.seek_step_sizes}\n'
        s += f'Anneal step sizes: {self.anneal_step_sizes}\n'
        s += f'Fade in velocities: {self.fade_in_velocities}\n'
        s += 'Step sizes: {}\n'.format(np.array_str(self.step_sizes).replace('\n', ''))
        s += 'Step probabilities: {}\n'.format(np.array_str(self.step_probabilities).replace('\n', ''))
        return s
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号