Giter Site home page Giter Site logo

refactor GoToObj and GoNextTo about babyai HOT 3 CLOSED

mila-iqia avatar mila-iqia commented on August 25, 2024
refactor GoToObj and GoNextTo

from babyai.

Comments (3)

maximecb avatar maximecb commented on August 25, 2024

Please elaborate on your reasoning. Iā€™d like to be kept in the loop a bit more here, considering I might have to maintain this code.

from babyai.

rizar avatar rizar commented on August 25, 2024

Sure. I feel uneasy about our practice of having GoToObj put GoNextTo on the stack, and then having GoNextTo delete itself from it:

https://github.com/mila-udem/babyai/blob/master/babyai/bot.py#L607

I don't yet full understand how this works so far, but it seems to me that we could refactor this part to have GoToObj.take_action() call GoNextTo.take_action(), in the same way as GoToObj.get_action() calls GoNextTo.get_action().

from babyai.

rizar avatar rizar commented on August 25, 2024

Fixed by #26

from babyai.

Related Issues (20)

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.