starry-sky6688 / MARL-Algorithms

Implementations of IQL, QMIX, VDN, COMA, QTRAN, MAVEN, CommNet, DyMA-CL, and G2ANet on SMAC, the decentralised micromanagement scenario of StarCraft II
1.42k stars 279 forks source link

关于设置batch大小 #69

Closed Duke-Allen closed 2 years ago

Duke-Allen commented 2 years ago

作者您好,我想请问一下如何才能设置batch的大小,似乎没有找到batch_size这种类似的参数。打扰到您十分抱歉

starry-sky6688 commented 2 years ago

https://github.com/starry-sky6688/StarCraft/blob/2c07045f294ad4eeb5ab8a8d25cf43d0efea4cb3/common/arguments.py#L89

类似的,每个算法的参数函数里都有

Duke-Allen commented 2 years ago

https://github.com/starry-sky6688/StarCraft/blob/2c07045f294ad4eeb5ab8a8d25cf43d0efea4cb3/common/arguments.py#L89

类似的,每个算法的参数函数里都有

这个似乎只有在get_mixer_args函数中有,get_coma_argsget_centralv_argsget_reinforce_args中好像没有这个吧?

starry-sky6688 commented 2 years ago

这几个是on-policy算法,不需要batch_size,每次的batch就是刚刚产生的那些episode

Duke-Allen commented 2 years ago

这几个是on-policy算法,不需要batch_size,每次的batch就是刚刚产生的那些episode

好的,明白了,谢谢