Open DLWCMD opened 2 years ago
In your env_kwargs, instead of initial_amount, pass initial_list because inside the init method initial amount is set to the first value only. What changes have you done?
Below is the information I shared with Athe-kunal yesterday. I tested both a initial_list with only dollar amount and an extended list with both cash and numbers of shares for each of the 29 stocks in the portfolio. Both failed.
The attached file provides details. Initial_List_Failures.txt
Astarag,
Thanks for your response, to which I am replying in this email, which came directly to me, not via Slack. Let me know if you want me to also reply on Slack.
I have tried two approaches using initial list, both of which have failed: Only a dollar amount. Thus, initial_list[0] holds this value, consistent with the new code. Dollar amount followed by entries for each stock in portfolio, for a total length of 30
Here is a code snippet:
initial_amt = 1000000
initial_list = [initial_amt]
initialshares = [10 for in range(stock_dimension)]
initial_list.extend(initial_shares)
I will re-run the two cases and share error information with you.
Thanks.
David L. Wilt
3272 Bayou Road
Longboat Key FL 34228
@.***
540-420-0844
From: Astarag Mohapatra @.> Reply-To: AI4Finance-Foundation/FinRL @.> Date: Wednesday, March 9, 2022 at 7:46 AM To: AI4Finance-Foundation/FinRL @.> Cc: DLWCMD @.>, Author @.***> Subject: Re: [AI4Finance-Foundation/FinRL] Changes to StockTradingEnv Cause Hyperparameter Optimization Notebook to Fail (Issue #506)
In your env_kwargs, instead of initial_amount, pass initial_list because inside the init method initial amount is set to the first value only. What changes have you done?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>
My notebook, _FinRL_HyperparameterTuningOptuna.ipynb, (in Tutorials/4-Optimization) is failing because of the changes recently made to the StockTradingEnv class, specifically the introduction of "initial_list" to _envstocktrading.py. After an initial failure, I created an initial list based on reading the new code, but it failed as well. See below.
This new code was introduced through the standard installation command I have been using since I first began working on my notebook:
!pip install git+https://github.com/AI4Finance-LLC/FinRL-Library.git
In the near term, is there a previous release of the FinRL library available that does not include the initial_list concept? If not, I need further instructions on using the _initiallist.
Thanks. Please let me know if you need more information.