GithubHelp home page GithubHelp logo

cooperative_learning's People

Contributors

ananyakumar avatar chrisying avatar ddirenzo avatar eggylv999 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hyzcn benjywp

cooperative_learning's Issues

Neural Net Interface

For each car c, we want the k closest cars. For each of these cars we want the relative velocity (x and y component) and relative position (x and y component). So we will get an input vector of size 4k [pos_x1, pos_y1, vel_x1, vel_y1, pos_x2, pos_y2, ...].

This then gets fed into a (randomly initialized) neural net with fully connected hidden layers which has 4 outputs: mean and std-dev of acceleration in x and y direction. The final layer would be linear, except for standard deviations there's usually an exponential activation so it doesn't get negative. This is plugged into a Gaussian distribution to generate 2 values per car: acceleration x and y.

The controls for the cars should be concatenated into a 2d np array, and given to the environment. If the neural net stuff is tricky, for now let's at least do the input and output preprocessing so all we need to do is build the neural net and train it :)

Add obstacles

Add support for obstacles into the code.

  • Add an obstacle class which has a center and radius.
  • For now we can have a fixed x, y coordinate for the center, and radius for the obstacle.
  • In the _kill_collided_cars, check if a car collided with an obstacle, and kill the car as needed.
  • While making changes, let me know if the code is poorly structured and I can fix things.

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.