-
Notifications
You must be signed in to change notification settings - Fork 100
Automatic Trading fails #1
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
Comments
I added a print statement above line 73 in Model.py (print(tf.argmax(self.model.predict(sample),1)) and got the following: Tensor("ArgMax:0", shape=(1,), dtype=int64) followed by the same Traceback as above. |
I am using ubuntu-1804-bionic-v20210129 my python version is 3.6.9 and pip3 freeze outputs the following: absl-py==0.11.0 |
Uh oh!
There was an error while loading. Please reload this page.
Please see the following Traceback:
> Trading Automatically for ['2020_10']
#################################################################################################
Account Balance: $ 1000 BTC: $ 0 USD: $ 1000
#################################################################################################
########################################## DAY 1 #########################################
Traceback (most recent call last):
File "Controller.py", line 75, in
auto_trader.runSimulation(x_test, prices)
File "/home/crypto-trading-ai-bot-basic/AutoTrader.py", line 54, in runSimulation
prediction = self.advisor.predict(np.array([samples[i]]))
File "/home/crypto-trading-ai-bot-basic/Model.py", line 73, in predict
prediction = np.array(tf.argmax(self.model.predict(sample),1))[0]
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
Any idea what could be wrong?
The text was updated successfully, but these errors were encountered: