music_env.py 文件源码

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

项目:gym-music 作者: calclavia 项目源码 文件源码
def __init__(self):
        self.observation_space = spaces.Discrete(NUM_CLASSES)
        self.action_space = spaces.Tuple(
            tuple(spaces.Discrete(2) for _ in range(NUM_CLASSES))
        )
        # Total number of notes
        self.num_notes = 32
        self.key = C_MAJOR_KEY
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号