agent.py 文件源码

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

项目:deer 作者: VinF 项目源码 文件源码
def setNetwork(self, fname, nEpoch=-1):
        """ Set values into the network

        Parameters
        -----------
        fname : string
            Name of the file where the values are
        nEpoch : int
            Epoch number (Optional)
        """

        basename = "nnets/" + fname

        if (nEpoch>=0):
            all_params = joblib.load(basename + ".epoch={}".format(nEpoch))
        else:
            all_params = joblib.load(basename)

        self._network.setAllParams(all_params)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号