Skip to content

Commit

Permalink
2020-08-27
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceYanghy committed Aug 27, 2020
1 parent 821b0b9 commit 991eb56
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion env/StockTradingRLEnv.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pickle

# shares normalization factor
HMAX_NORMALIZE = 10
HMAX_NORMALIZE = 30
# initial amount of money we have in our account
INITIAL_ACCOUNT_BALANCE=1000000
# total number of stocks in our portfolio
Expand Down
2 changes: 1 addition & 1 deletion run_DRL.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run_model() -> None:

## model training
print("==============Model Training===========")
model = train_A2C(env_train, model_name = "A2C_80k_spy", timesteps=80000)
model = train_PPO(env_train, model_name = "PPO_200k_dow", timesteps=200000)

print("==============Model Prediction===========")
for i in range(len(test.index.unique())):
Expand Down

0 comments on commit 991eb56

Please sign in to comment.