-
Notifications
You must be signed in to change notification settings - Fork 176
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
TypeError: Error converting shape to a TensorShape: int() argument must be a string, a bytes-like object or a number, not 'tuple' #3
Comments
got the same problem. can I get some help pls ? |
Im not sure if this is the reason why but i downgraded the gym version to 0.9.4 and it worked i had 0.10.8 before |
For anyone else running into issues juggling versions of various dependencies causing odd errors, the TensorFlow pip docs have hints for not messing things up on system wide or user environment levels. After following up to step two in linked guide one can... # Clone the source and cd there, eg
git clone https://github.com/llSourcell/Q-Learning-for-Trading.git
cd Q-Learning-for-Trading
# Make a virtual environment specific to cloned project
virtualenv --system-site-packages -p python2.7 ./venv
## Note I used `python3.5` instead as there was only one
## package with a specific version, and things _seemed_
## to work
# Change shell to that of the virtual environment
source ./venv/bin/activate
# Install packages within virtual environment while
# ignoring system or user level pre-existing packages
pip install -r requirements.txt --ignore-installed
To exit the Prior to running the project's code will require... cd Q-Learning-for-Trading
source ./venv/bin/activate ... but I consider that low cost when weighed against sorting out how to install every developer's project dependencies without conflicts. |
Hey Guys, Ive got this problem and I solved it by converting the tuple n_obs which was (7,2) (in model.py file) in and then multiplying it to pass it to the input_dim of keras which expects the input as 7*2 n_obs = np.array(n_obs) """ A multi-layer perceptron """ |
@IsaacPatole more elegant way : |
Canceled
The text was updated successfully, but these errors were encountered: