GithubHelp home page GithubHelp logo

DQN not learning about tfjs HOT 4 CLOSED

AhdHazim avatar AhdHazim commented on August 26, 2024
DQN not learning

from tfjs.

Comments (4)

gaikwadrahul8 avatar gaikwadrahul8 commented on August 26, 2024

Hi, @AhdHazim

I apologize for the delayed response and If I'm not wrong it seems like you're not using TensorFlow.js library and using core TensorFlow so I would suggest you to please follow this official example shows how to train a DQN (Deep Q Networks) agent on the Cartpole environment using the TF-Agents library.

You can consider below points for DQN learning :

  • Loss Function: The code uses the mean squared error (MSE) loss. Huber loss is sometimes preferred for DQN as it can be less sensitive to outliers.

  • Training Batch Size: The batch size might be too small or too large for your specific scenario. Experiment with different values.

  • Hyperparameter Tuning: The chosen hyperparameters like learning rate, epsilon decay, memory size etc.. might not be suitable for your environment. Try experimenting with different values to see if it improves learning.

By checking these points and potentially modifying the code you can improve the learning behavior of your DQN agent. Remember that training DQN agents can be an iterative process and may require adjustments based on your specific environment and task.

If this issue is not specific to TensorFlow.js then I would request you to please post this issue in core TensorFlow repo here if your issue did not solve after trying above mentioned points.

Thank you for your cooperation and patience.

from tfjs.

github-actions avatar github-actions commented on August 26, 2024

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

from tfjs.

github-actions avatar github-actions commented on August 26, 2024

This issue was closed due to lack of activity after being marked stale for past 7 days.

from tfjs.

google-ml-butler avatar google-ml-butler commented on August 26, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tfjs.

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.