Giter Site home page Giter Site logo

Comments (8)

CarterEllsworth avatar CarterEllsworth commented on May 21, 2024

Keep in mind that epsilon begins at 1 and decays by 99.5% it's value every 32 time steps as given by batch_size. The policy given by the act method will be random most of the time and can take several episode before getting below 50%.

from deep-q-learning.

adibyte95 avatar adibyte95 commented on May 21, 2024

with a batch size of 128 and the same epsilon decay rate this repo shows impressive result when the model is reloaded. i ran the model several times and it showed good result all the time. The model was trained for less than 1000 episodes

from deep-q-learning.

CarterEllsworth avatar CarterEllsworth commented on May 21, 2024

It looks like the difference is that keon's code saves and loads the weights whereas your altered code saves and loads the model. I don't have much experience with keras but I would assumed the value of epsilon is reset to 1 when loading the weights and initializing the model

from deep-q-learning.

adibyte95 avatar adibyte95 commented on May 21, 2024

yes i was having a hard time with saving the weights so i switched to saving the model instead, with this the results were much better and i recommend the same . i cannot really comment on your assumption though

from deep-q-learning.

fi000 avatar fi000 commented on May 21, 2024

Adibyte95, Saving model is similar to save weight (because the numbers of nodes are constant). Is there anything more? Why is made your code more accurate than the code of Keon?

from deep-q-learning.

adibyte95 avatar adibyte95 commented on May 21, 2024

I am not sure ....maybe initial weights and not partially trained weights are loaded

from deep-q-learning.

fi000 avatar fi000 commented on May 21, 2024

@keon Is it similar to DDQN? (You mean by DDQN is double or duel DQN?) Saving model is similar to save weight (because the numbers of nodes are constant). Is there anything more? Why is made your code more accurate than the code of Keon?

from deep-q-learning.

WorksWellWithOthers avatar WorksWellWithOthers commented on May 21, 2024

ddqn is double here since there is no dueling implementation in the repo.
The hyperparameters affect the performance of a model greatly.
When comparing implementations please make sure to fix seed samples and hyperparameters.

from deep-q-learning.

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.