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

Exception when running live version #11

Closed
oscarberonius opened this issue Oct 25, 2018 · 3 comments
Closed

Exception when running live version #11

oscarberonius opened this issue Oct 25, 2018 · 3 comments
Labels

Comments

@oscarberonius
Copy link

oscarberonius commented Oct 25, 2018

I created a config for the PPO agent and trained it on the provided data without problems.

When I run 'python run.py -s live' I get the exception

  File "run.py", line 110, in <module>
    session.loadSession()
  File "/Users/Oscar/Documents/Cryptotrading/Tradz/TradzQAI/core/session/live.py", line 61, in loadSession
    self.initAgent()
  File "/Users/Oscar/Documents/Cryptotrading/Tradz/TradzQAI/core/session/live.py", line 74, in initAgent
    self.agent = self.agent(env=self.env, device=self.device)._get()
  File "/Users/Oscar/Documents/Cryptotrading/Tradz/TradzQAI/agents/PPO.py", line 6, in __init__
    Agent.__init__(self, env=env, device=device)
  File "/Users/Oscar/Documents/Cryptotrading/Tradz/TradzQAI/agents/agent.py", line 24, in __init__
    states=self.env.states,
AttributeError: 'Live_env' object has no attribute 'states'

I made sure my api-key, pass and secret are correct. I am connecting to https://api.pro.coinbase.com as endpoint.

Anything I missed?

@kkuette
Copy link
Owner

kkuette commented Oct 25, 2018

I've not fully fixed the complex layer integration for live session yet, it will be available soon.

@kkuette kkuette added the bug label Oct 25, 2018
@kkuette
Copy link
Owner

kkuette commented Oct 28, 2018

I've fixed the states problem. Still there is a little fix to do, not a big deal, i will do it ASAP.

@kkuette
Copy link
Owner

kkuette commented Oct 28, 2018

I've pushed a fix.
Keep me posted if any problem occur.

@kkuette kkuette closed this as completed Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants