Git Product home page Git Product logo

qlearning's People

Contributors

hardikbansal avatar romitgithub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

qlearning's Issues

global name 'curr_state' is not defined

Got following error, when invoke "python flappy_dqn_gym.py"

...
Total rewards in episode 194 is 3.8 total number of steps are 9555
Total rewards in episode 195 is 3.8 total number of steps are 9604
Total rewards in episode 196 is 3.8 total number of steps are 9653
Total rewards in episode 197 is 3.8 total number of steps are 9702
Total rewards in episode 198 is 3.8 total number of steps are 9751
Total rewards in episode 199 is 3.8 total number of steps are 9800
Total rewards in episode 200 is 3.8 total number of steps are 9849
Total rewards in episode 201 is 3.8 total number of steps are 9898
Total rewards in episode 202 is 3.8 total number of steps are 9947
Total rewards in episode 203 is 3.8 total number of steps are 9996
Traceback (most recent call last):
  File "flappy_dqn_gym.py", line 287, in <module>
    main()
  File "flappy_dqn_gym.py", line 283, in main
    mod.train()
  File "flappy_dqn_gym.py", line 166, in train
    temp_action = self.policy(sess, "e_greedy")
  File "flappy_dqn_gym.py", line 111, in policy
    feed_dict={self.main_net.input_state:np.reshape(curr_state,[-1, self.state_size])})
NameError: global name 'curr_state' is not defined

training not seemed to be working?

I cab see the game.
But it keeps on repeating sane steps:

Total rewards in episode 73 is 3.799999999999999 total number of steps are 3626
Total rewards in episode 74 is 3.799999999999999 total number of steps are 3675
Total rewards in episode 75 is 3.799999999999999 total number of steps are 3724
Total rewards in episode 76 is 3.799999999999999 total number of steps are 3773
Total rewards in episode 77 is 3.799999999999999 total number of steps are 3822
Total rewards in episode 78 is 3.799999999999999 total number of steps are 3871
Total rewards in episode 79 is 3.799999999999999 total number of steps are 3920
Total rewards in episode 80 is 3.799999999999999 total number of steps are 3969
Total rewards in episode 81 is 3.799999999999999 total number of steps are 4018
Total rewards in episode 82 is 3.799999999999999 total number of steps are 4067
Total rewards in episode 83 is 3.799999999999999 total number of steps are 4116
Total rewards in episode 84 is 3.799999999999999 total number of steps are 4165
Total rewards in episode 85 is 3.799999999999999 total number of steps are 4214
Total rewards in episode 86 is 3.799999999999999 total number of steps are 4263
Total rewards in episode 87 is 3.799999999999999 total number of steps are 4312
Total rewards in episode 88 is 3.799999999999999 total number of steps are 4361
Total rewards in episode 89 is 3.799999999999999 total number of steps are 4410
Total rewards in episode 90 is 3.799999999999999 total number of steps are 4459
Total rewards in episode 91 is 3.799999999999999 total number of steps are 4508
Total rewards in episode 92 is 3.799999999999999 total number of steps are 4557
Total rewards in episode 93 is 3.799999999999999 total number of steps are 4606
Total rewards in episode 94 is 3.799999999999999 total number of steps are 4655
Total rewards in episode 95 is 3.799999999999999 total number of steps are 4704
Total rewards in episode 96 is 3.799999999999999 total number of steps are 4753
Total rewards in episode 97 is 3.799999999999999 total number of steps are 4802
Total rewards in episode 98 is 3.799999999999999 total number of steps are 4851
Total rewards in episode 99 is 3.799999999999999 total number of steps are 4900
Total rewards in episode 100 is 3.799999999999999 total number of steps are 4949
Total rewards in episode 101 is 3.799999999999999 total number of steps are 4998
Total rewards in episode 102 is 3.799999999999999 total number of steps are 5047
Total rewards in episode 103 is 3.799999999999999 total number of steps are 5096
Total rewards in episode 104 is 3.799999999999999 total number of steps are 5145
Total rewards in episode 105 is 3.799999999999999 total number of steps are 5194
Total rewards in episode 106 is 3.799999999999999 total number of steps are 5243

it is not improving.
is there anything else we need to do ?

Thanks

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.