Comments (4)
The Runner object now expects summary_writer, so declare it when creating your agent, or specify None.
def create_basic_agent(sess, environment, summary_writer=None):
from google_dopamine_live.
I had the same problem,
thanks toyfrog :)
It solved
from google_dopamine_live.
I've got the similar issue but with game_name argument:
TypeError: __init__() got an unexpected keyword argument 'game_name' In call to configurable 'Runner' (<class 'dopamine.discrete_domains.run_experiment.Runner'>)
Does anyone know what may be the problem?
from google_dopamine_live.
Try this @Valkoiset
def create_basic_agent(sess, environment, summary_writer= None):
return BasicAgent(sess, num_actions= environment.action_space.n, switch_prob = 0.2)
basic_agent_config = """
import dopamine.discrete_domains.atari_lib
import dopamine.discrete_domains.run_experiment
atari_lib.create_atari_environment.game_name = '{}'
atari_lib.create_atari_environment.sticky_actions = True
run_experiment.Runner.num_iterations = 200
run_experiment.Runner.training_steps = 10
run_experiment.Runner.max_steps_per_episode = 100
""".format(GAME)
gin.parse_config(basic_agent_config, skip_unknown=False)
basic_runner = run_experiment.TrainRunner(LOG_PATH,
create_basic_agent)
Also in the beginning add:
import gin.tf
I used Dopamine's updated colab code Example 2 here is the link
from google_dopamine_live.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google_dopamine_live.