Skip to content

Commit

Permalink
Fixed Bad Import Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arunavo4 committed Jul 9, 2019
1 parent b2ed19a commit be6d144
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/RLTrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from stable_baselines import PPO2

from lib.env.TradingEnv import TradingEnv
from lib.env.reward import BaseRewardStrategy, IncrementalProfit
from lib.env.reward import BaseRewardStrategy, IncrementalProfit, WeightedUnrealisedProfit
from lib.data.providers.dates import ProviderDateFormat
from lib.data.providers import BaseDataProvider, StaticDataProvider, ExchangeDataProvider
from lib.util.logger import init_logger
Expand Down
2 changes: 1 addition & 1 deletion lib/env/TradingEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TradingEnv(gym.Env):

def __init__(self,
data_provider: BaseDataProvider,
reward_strategy: BaseRewardStrategy = WeightedUnrealisedProfit,
reward_strategy: BaseRewardStrategy = IncrementalProfit,
initial_balance: int = 10000,
commission: float = 0.0025,
**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion lib/env/reward/IncrementalProfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class IncrementalProfit(BaseRewardStrategy):
def __init__(self):
pass
super(IncrementalProfit, self).__init__()

def reset_reward(self):
pass
Expand Down
1 change: 1 addition & 0 deletions lib/env/reward/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from lib.env.reward.IncrementalProfit import IncrementalProfit
from lib.env.reward.WeightedUnrealisedProfit import WeightedUnrealisedProfit
from lib.env.reward.BaseRewardStrategy import BaseRewardStrategy

0 comments on commit be6d144

Please sign in to comment.