GithubHelp home page GithubHelp logo

Comments (3)

matthiasplappert avatar matthiasplappert commented on May 18, 2024

Exactly, it is related to the window length. Let's assume that your observations have shape (10, 20). If window_length=4, the input to the network would be of shape (4, 10, 20). If you use flatten or not depends on what you want to achieve. In the Atari example, the convolution is performed before flattening since the same set of filter should be used for each frame. In other examples, it might make more sense to flatten immediately.

In the case of the cartpole example, the window length is 1 (since the observation already contains velocities etc.). Flattening the input thus simply reduces the dimension by one and otherwise keeps the observation identical.

Does this clarify things?

from keras-rl.

matthiasplappert avatar matthiasplappert commented on May 18, 2024

Closing this since the question has (hopefully) been answered. If you this needs further clarification, please re-open the issue.

from keras-rl.

yongduek avatar yongduek commented on May 18, 2024

Hello, the question was answered; sorry for not responding due to my tight
work schedule. I should have left some message.
Thanks a lot for the answer.

Yongduek Seo
Professor
+82 10 9296 8896
Department of Media Technology
Sogang University, Korea

On 6 September 2016 at 22:21, Matthias Plappert [email protected]
wrote:

Closed #19 https://github.com/matthiasplappert/keras-rl/issues/19.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/matthiasplappert/keras-rl/issues/19#event-779320444,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD3huKH15Fc3-hW7tWFlwbmrC39T88Hnks5qnWjygaJpZM4JtAFK
.

from keras-rl.

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.