tdb-alcorn / q2 Goto Github PK
View Code? Open in Web Editor NEWA framework and command line interface for reinforcement learning development
License: MIT License
A framework and command line interface for reinforcement learning development
License: MIT License
Hi,
Trying to reproduce the cart pole training scenario described in here, I encountered the following error:
(python3) ~/repos_and_code/reinforced_test ~> q2 train random --env gym.CartPole-v1 --episodes 10 --render
Traceback (most recent call last):
File "/home/guillermo/.anaconda/envs/python3/bin/q2", line 11, in <module>
sys.exit(main())
File "/home/guillermo/.anaconda/envs/python3/lib/python3.6/site-packages/q2/tool.py", line 83, in main
args.func(args)
File "/home/guillermo/.anaconda/envs/python3/lib/python3.6/site-packages/q2/train/__init__.py", line 90, in main
regimen.train(env_maker, state, args.num_epochs, args.episodes_per_epoch, test=args.test, render=args.render, bk2dir=args.bk2dir, out_filename=args.out_filename)
AttributeError: 'Namespace' object has no attribute 'out_filename'
Looking at the code, seems like the CLI argument out_filename
is not defined anywhere.
More info:
Python version: Python 3.6.5 :: Anaconda, Inc.
Reproduce: Just follow the steps described here on a clean python environment.
Absolute paths break collaboration across different machines
╰─$ q2 train random --env gym.CartPole-v1 --episodes 10 --render 2 ↵
Traceback (most recent call last):
File "/Users/tom/dev/team-halite/env/bin/q2", line 8, in <module>
sys.exit(main())
File "/Users/tom/dev/team-halite/env/lib/python3.6/site-packages/q2/tool.py", line 83, in main
args.func(args)
File "/Users/tom/dev/team-halite/env/lib/python3.6/site-packages/q2/train/__init__.py", line 38, in main
from q2.agents import all_agents
File "/Users/tom/dev/team-halite/env/lib/python3.6/site-packages/q2/agents/__init__.py", line 9, in <module>
from .agent import Agent
File "/Users/tom/dev/team-halite/env/lib/python3.6/site-packages/q2/agents/agent.py", line 7, in <module>
class Agent(ABC):
File "/Users/tom/dev/team-halite/env/lib/python3.6/site-packages/q2/agents/agent.py", line 21, in Agent
sess:tf.Session,
AttributeError: module 'tensorflow' has no attribute 'Session'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.