Closed ttys0001 closed 2 years ago
如果着急用的话,可以先把 logger.record 注释掉,这个 repo 有定义自己的 log 输出
感谢,另外想问问大佬训练每个模型大概花了多久啊?我自己训练发现很慢,感觉没用上GPU嗯
48 h 吧,其实没有完全训练好,可以用 matpool 试试 用没用 GPU 可以看日志的
感谢大佬,还想问问大佬几个问题
1、K80 跑的(因为便宜),都是48H,控制变量 2、修改了一次波动较大的值 3、不需要手动设置,你去搜搜 tf 或者 torch 的 GPU 检测命令,stable-baseline3 都已经设置好了 4、你可以试试 PPO 多线程的效果,其他的不建议进一步尝试
File "E:\software\nutshell\stock_research\强化学习\code\RL_in_Stock\utils\env.py", line 281, in step return self.return_terminal(reward=self.get_reward()) File "E:\software\nutshell\stock_research\强化学习\code\RL_in_Stock\utils\env.py", line 190, in return_terminal logger.record("environment/GainLoss_pct", (gl_pct - 1) * 100) AttributeError: module 'stable_baselines3.common.logger' has no attribute 'record'
大佬想请教一下这个bug如何解决啊?
查了一下是因为stable_baselines3更新了,来源:https://github.com/AI4Finance-LLC/FinRL/issues/239,但是没找到在哪里改,麻烦大佬了!
一个可行的解决方案: 注释这一行:from stable_baselines3.common import logger 替换为:from stable_baselines3.common import utils logger = utils.configure_logger()
File "E:\software\nutshell\stock_research\强化学习\code\RL_in_Stock\utils\env.py", line 281, in step return self.return_terminal(reward=self.get_reward()) File "E:\software\nutshell\stock_research\强化学习\code\RL_in_Stock\utils\env.py", line 190, in return_terminal logger.record("environment/GainLoss_pct", (gl_pct - 1) * 100) AttributeError: module 'stable_baselines3.common.logger' has no attribute 'record'
大佬想请教一下这个bug如何解决啊?
查了一下是因为stable_baselines3更新了,来源:https://github.com/AI4Finance-LLC/FinRL/issues/239,但是没找到在哪里改,麻烦大佬了!