notadamking / RLTrader

A cryptocurrency trading environment using deep reinforcement learning and OpenAI's gym
https://discord.gg/ZZ7BGWh
GNU General Public License v3.0
1.71k stars 537 forks source link

logger error #112

Closed ElliotVilhelm closed 5 years ago

ElliotVilhelm commented 5 years ago

line 157 in RLTrader.py was throwing an error on python 3.

TypeError: not all arguments converted during string formatting
Call stack:
  File "./cli.py", line 32, in <module>
    proc.start()
 .......
 File "/home/null/RLTrader/lib/RLTrader.py", line 157, in optimize_params
    self.logger.info('Pruning trial for not making any trades: ', eval_idx)
Message: 'Pruning trial for not making any trades: '
Arguments: (1,)

All logger code is using f strings in RLTrader.py other than this line, this is a simple fix that changes this line to f string as well.