title.py 文件源码

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

项目:reddit-iambic-pentameter 作者: pmichel31415 项目源码 文件源码
def sample_adjective(self, vector):
        """Sample an adjective at random (same method as sample_noun)"""
        p = util.softmax(self.adj_vectors.dot(vector) / self.tau)
        return npr.choice(self.adjs, p=p)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号