Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Shenlei151 flexibility enhance" #497

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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