Giter VIP home page Giter VIP logo

sumrak-s / cross-the-road-unity-ml-agents Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 2.0 3.43 MB

AI learns to cross the road with Unity ML-Agents (imitation learning or reinforcement learning)

Home Page: https://www.youtube.com/watch?v=8KsjKezUc8w

License: Apache License 2.0

C# 100.00%
reinforcement-learning unity ml-agents neural-networks unity3d deep-learning deep-reinforcement-learning gpu machine-learning artificial-intelligence

cross-the-road-unity-ml-agents's Introduction

Cross the road. Example for ML-Agents 1.0+ in Unity3D

AI learns to cross the road with Unity ML-Agents (imitation learning or reinforcement learning).

Video about it

=)

Goal: Cross to the other side of the road without colliding with a car.
Agents: The environment contains 30 agents of the same kind, all using the same Behavior Parameters.
Agent Reward Function:
  +5 for crossing the road.
  -5 if the agent collided with a car.
  +0.05 if the current distance is less than the last.
  -0.005 if the current distance is greater or equal to the last one.
Behavior Parameters:
  Vector observation space: 8 variables corresponding to rotation of the agent's cube and the position and distance to the other side of the road.
  Size of 40, corresponding to 20 ray casts each detecting 2 possible objects.
Actions: 2 discrete action branches:
  Forward Motion (3 possible actions: Forward, Backwards, No Action)
  Rotation (3 possible actions: Rotate Left, Rotate Right, No Action)

cross-the-road-unity-ml-agents's People

Contributors

sumrak-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.