Giter VIP home page Giter VIP logo

Comments (4)

toyfrog avatar toyfrog commented on July 20, 2024

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.

jrgantunes avatar jrgantunes commented on July 20, 2024

I had the same problem,

thanks toyfrog :)

It solved

from google_dopamine_live.

Valkoiset avatar Valkoiset commented on July 20, 2024

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.

hamk3010 avatar hamk3010 commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.