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

__init__() got an unexpected keyword argument 'EPS' #1

Open
formidiable opened this issue Dec 26, 2021 · 2 comments
Open

__init__() got an unexpected keyword argument 'EPS' #1

formidiable opened this issue Dec 26, 2021 · 2 comments

Comments

@formidiable
Copy link

formidiable commented Dec 26, 2021

No description provided.

@MehranTaghian
Copy link
Owner

MehranTaghian commented Jan 3, 2022 via email

@dekacypher
Copy link

Remove EPS and n_actions from the DeepRL constructor, because they don't match the parameteres of the constructor of DeepRL, and also set data_train to the correct type it should be DataAutoPatternExtractionAgent and not DataForPatternBasedAgent. And likewise for the test() method, the parametres used doesn't match the constructor of the test()-method.

Like this:

`
deepRLAgent = DeepRL(data_loader, dataTrain_autoPatternExtractionAgent_windowed, dataTest_autoPatternExtractionAgent_windowed, DATASET_NAME,
state_mode, window_size, transaction_cost,
BATCH_SIZE=BATCH_SIZE, GAMMA=GAMMA, ReplayMemorySize=ReplayMemorySize,
TARGET_UPDATE=TARGET_UPDATE, n_step=n_step)
#EPS=EPS,
#n_actions=n_actions,
deepRLAgent.train(n_episodes)
file_name = None

ev_deepRLAgent = deepRLAgent.test(
initial_investment=initial_investment, test_type='train')
#file_name=file_name, action_name=dataTrain_autoPatternExtractionAgent_windowed.action_name,
deepRLAgent_portfolio_train = ev_deepRLAgent.get_daily_portfolio_value()
ev_deepRLAgent = deepRLAgent.test(
initial_investment=initial_investment, test_type='test')
#file_name=file_name, action_name=dataTrain_autoPatternExtractionAgent_windowed.action_name,
deepRLAgent_portfolio_test = ev_deepRLAgent.get_daily_portfolio_value()

model_kind = 'DQN-pattern'

add_train_portfo(model_kind, deepRLAgent_portfolio_train)
add_test_portfo(model_kind, deepRLAgent_portfolio_test)
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants