Git Product home page Git Product logo

Comments (2)

51616 avatar 51616 commented on June 2, 2024 1

@rosewang2008 Thank you for the informative answer! I think this definitely will help me get started adding this feature.

from gym-cooking.

rosewang2008 avatar rosewang2008 commented on June 2, 2024

Hi! The environment does support more than one recipe, for example as described here in the documentation.

It's as easy as just specifying another recipe! Another example is one I just created with two tomato recipes. The file looks like this, with two SimpleTomato recipes listed as described in the documentation.

Screen Shot 2021-01-13 at 7 50 06 AM

When you run the appropriate command, the expected result is that you should see the subtasks contain two copies of the tomato recipe like this:

Screen Shot 2021-01-13 at 7 46 15 AM

In our setting, we don't have a notion of "higher" vs. "lower" priority recipes. One way you could integrate that is by defining the environment reward to reflect those priorities; as of right now, environment reward is simply 1 if the agents complete the recipes, and 0 otherwise (rf here).

You could also add in priority information in the info variable returned by the environment (depending on what information you'd like the environment to pass to the agents). That can be defined here.

Let me know if that helps you get started!

from gym-cooking.

Related Issues (9)

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.