GithubHelp home page GithubHelp logo

velythyl / gym-duckietown Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cbschaff/gym-duckietown

0.0 1.0 0.0 79.08 MB

Self-driving car simulator for the Duckietown universe

Home Page: http://duckietown.org

License: Other

Python 96.21% Dockerfile 1.97% Shell 0.84% Makefile 0.72% Slim 0.26%

gym-duckietown's Issues

Initial fixes; more representative graphs

Initial fixes:

the model's predictions were in tensor form. This corrupted the env once the mixing started using the model: the self.cur_pos became an np.array of 1d, 1-element tensor.

Graphs:

as-is, the tensorboard calls plotted the loss on each epoch, and also all the epoch losses on one graph. We'd instead like to have one single big curve for each run, showing how the loss evolves per episode. This will allow us to compare the different curves, and thus optimise the HPs better.

Simply plotting the losses doesn't work, though. It produces incomparable graphs: as time goes on, we collect more and more data samples, meaning the running loss of the last epoch of each episode it strictly bigger, simply because it acts on more observations and actions. This leads to the appearance that the loss is increasing over time. This is an illusion: it is the dataset that increases over time.

image

We can convince ourselves of this by taking the mean of the losses w.r.t. to the size of the dataset. With that trick, we find the familiar curves normally associated with loss curves.

image

But that's also kind of bad: the numbers are so small that we're bound to have floating point errors. Instead, I planned on using the number of batches per dataset instead of the size of the dataset in the mean. But that would also be bad, as it would lose meaning if we change the batch size. So we're going to use a magic number instead, just so it doesn't vary with the HPs.

image

The magic number can be editted.

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.