Git Product home page Git Product logo

Comments (1)

mfe7 avatar mfe7 commented on June 30, 2024

Good question, I haven't done a good job keeping the test_case_fn methods up to date as things have changed. I tried to automate the process of generating new test cases but it's really badly maintained, sorry about that.

In the dataset generation script, here the code sets the test case kwarg 'agents_policy' -- in the past this was supposed to be a Policy class, but now it should be a string (e.g., 'noncoop' or others defined in this dict. You also may also want to remove the for policy in policies: loop to simplify things -- I think it is supposed to take in a list of policies and generate trajectories for all of those policies.

regarding the nonetype error -- i suspect that is related to the test_case_fn, because that line should only be executed for agents who have an ExternalPolicy. because one of the agents has an externalpolicy (probably because that is how agents were initialized in test_case_fn, whose default policy argument is "learning" (an externalpolicy)), the line that gives the error is looking for an externally provided actions dict, but i doubt the dataset collection script or run_episode method provides that dict. You may want to start with all agents using a built-in policies, such as ga3c-cadrl, and then they will choose actions "internally" to the environment.

all of that to say: i think the error will go away if you replace L129 with test_case_args['policies'] = 'noncoop' and then clean up all the things about policies in run_trajectory_dataset_creator.py. Then you could try to add back in the relevant pieces to get a ga3c-cadrl policy to work.

from gym-collision-avoidance.

Related Issues (17)

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.