wassname / rl-portfolio-management

Attempting to replicate "A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem" https://arxiv.org/abs/1706.10059 (and an openai gym environment)
544 stars 179 forks source link

Some problem of the torch #18

Closed smileyung closed 6 years ago

smileyung commented 6 years ago

when I type the instruction "pip install -r requirements/requirements.txt", I get the error message:

Could not find a version that satisfies the requirement torch==0.3.0.post4 (from -r requirements/requirements.txt (line 19)) (from versions: 0.1.2, 0.1.2.post1, 0.3.1, 0.4.0) No matching distribution found for torch==0.3.0.post4 (from -r requirements/requirements.txt (line 19))

what's wrong with it? how can I solve it?

wassname commented 6 years ago

I get the same message. It looks like they must have removed that version from the pypi repository. Try editing requirements.txt to use the nearest version (so line torch==0.3.0.post4 => torch==0.3.1). Then running "pip install -r requirements/requirements.txt". That will probably work since the versions are quite close.

If it does work, please let me know (or submit a PR), that way I can update the repo.

smileyung commented 6 years ago

Thanks a lot, torch==0.3.0.post4 => torch==0.3.1 work!

But there is another problem in tensorforce-PPO-IEET.ipynb

In [12]: AttributeError: module 'tensorflow.python.layers.layers' has no attribute 'AveragePooling1D'

wassname commented 6 years ago

That's probably the wrong version of tensorflow, but can you post the long error? That way I can go up the stack until I see this repo's code.

Can you also make sure you have all the versions specified in the requirements.txt file and also post the output of pip freeze here too?