-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/chapter7/project2 #33
Comments
参考代码 链接中dqn 应该改为 DQN. |
感谢反馈,github 的 pages 服务器出现问题了,不能更新在线阅读页面,等其回复正常,我们会及时更新 |
感谢您的反馈,链接已更新 |
cfg.max_episodes 这个在哪儿导入呢? |
你好,具体在哪个代码中,因为后面讲这个参数改为cfg.train_eps了,可能有漏掉的地方 |
您好,可以讲一下怎样用tensorboard查看结果吗,谢谢! |
moving average rewards有什么意义,怎么解释他呢 |
看到有人在问
from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter("logs") # writer为自定义对象名,logs是日志文件名,这条代码实际就是创建一个日志文件以保存数据
writer.add_image("tag", image_tensor, global_step) # 往日志中添加单个图片,tensor和numpy array格式均可
writer.add_images("tag", images_tensor, global_step) # 往日志中添加一批图片
writer.add_scalar("tag", val, step) # # 往日志中添加常数
writer.close() # 在结束整个流程后记得加上这一句,把writer关掉 还能添加其他东西,可以看一下 那么如何如何查看 注意:如果不同训练过程中都使用 最后举个简单的例子,比如要画个 from torch.utils.tensorboard import SummaryWriter
writer = SummaryWriter("y_2x")
for x in range(20):
y = 2 * x
writer.add_scalar("y = 2x", y, x)
writer.close() 然后运行后在终端输入 |
env.seed(1)已经废止,应当改用env.reset(seed=1) |
请问这里的 Agent 的类和 cfg 类是要自己定义吗 |
https://datawhalechina.github.io/easy-rl/#/chapter7/project2
Description
The text was updated successfully, but these errors were encountered: