Giter VIP home page Giter VIP logo

deepracer's Introduction

deepracer

AWS DeepRacer Experimentation.

Reward function

Definition from AWS

The reward function describes immediate feedback (as a score for reward or penalty) when the vehicle takes an action to move from a given position on the track to a new position. Its purpose is to encourage the vehicle to make moves along the track to reach its destination quickly. The model training process will attempt to find a policy which maximizes the average total reward the vehicle experiences.

Signature

def reward_function(params) :
    
    reward = ...

    return float(reward)

Params

Name Description
all_wheels_on_track (boolean) flag to indicate if the vehicle is on the track
x (float) vehicle's x-coordinate in meters
y (float) vehicle's y-coordinate in meters
distance_from_center (float) distance in meters from the track center
is_left_of_center (boolean) flag to indicate if the vehicle is on the left side to the track center or not
heading (float) vehicle's yaw in degrees
progress (float) percentage of track completed
steps (int) numbers of steps completed
steering (float) -1 to 1 (-1 is right, 1 is left)
speed (float) vehicle's speed in meters per second (m/s)
steering_angle (float) vehicle's steering angle in degrees
track_width (float) width of the track
waypoints [[float, float] โ€ฆ ] list of [x,y] as milestones along the track center
closest_waypoints [int, int] indices of the two nearest waypoints

Reward function

Salamensa

A copy-and-paste from Amazon AWS of the sample reward function; used for learning purpose.

Punisher

A first attempt to build a "punisher" reward function to train my model.

Top ten classified in AWS Deepracer leage, in Turin.

Go and Forget

An attempt to build an easiest reward function to train my model.

Birra moretti

A total failure.

Utils

Get last 10000 simulation jobs logs:

aws logs get-log-events --log-group-name "/aws/robomaker/SimulationJobs" --log-stream-name "<STREAM_NAME>" --output text --region us-east-1 > deepracer-sim.log

deepracer's People

Contributors

ceccode avatar

Stargazers

 avatar

Watchers

 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.