neuron.py 文件源码

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

项目:CM1K_emulator 作者: kebwi 项目源码 文件源码
def shrink_if_necessary(self, cat, new_aif, minif):
        """
        Shrink if the AIF if categories don't match and error-compensating AIF < currently held AIF.
        """
        log.trace("Neuron.shrink_if_necessary()")

        # TODO: create unit test where misfiring neuron has exactly the same distance as the best neuron.
        if cat != self.cat and new_aif < self.aif:
            self.shrink_aif(new_aif, minif)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号