kh-kim / stock_market_reinforcement_learning

This project provides a stock market environment using OpenGym with Deep Q-learning and Policy Gradient.
785 stars 323 forks source link

what is the meaning of sudden_death #14

Open scotthuang1989 opened 6 years ago

scotthuang1989 commented 6 years ago

I do't get the idea of how sudden_death work, can someone explain it? thanks.

if self.sudden_death * len(self.boughts) > self.reward:
    self.done = True