Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 0 additions & 133 deletions RL_stock.py

This file was deleted.

2 changes: 0 additions & 2 deletions finrl/drl_agents/stablebaselines3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def DRL_prediction(model, environment, deterministic=True):
"""make a prediction"""
account_memory = []
actions_memory = []
state_memory=[] #add memory pool to store states
test_env.reset()
for i in range(len(environment.df.index.unique())):
action, _states = model.predict(test_obs, deterministic=deterministic)
Expand All @@ -120,7 +119,6 @@ def DRL_prediction(model, environment, deterministic=True):
if i == (len(environment.df.index.unique()) - 2):
account_memory = test_env.env_method(method_name="save_asset_memory")
actions_memory = test_env.env_method(method_name="save_action_memory")
state_memory=test_env.env_method(method_name="save_state_memory") # add current state to state memory
if dones[0]:
print("hit end!")
break
Expand Down
Loading