Giter Site home page Giter Site logo

hoooon89 / deepracer-log-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from therayg/deepracer-log-analysis

0.0 0.0 0.0 14.06 MB

Adventures in a data-driven approach to training, evaluating and tuning AWS DeepRacer reinforcement learning models (compatible with the new AWS DeepRacer console training logs after Aug 2020).

License: MIT No Attribution

Jupyter Notebook 100.00%

deepracer-log-analysis's Introduction

deepracer-log-analysis

Adventures in a data-driven approach to training, evaluating and tuning AWS DeepRacer reinforcement learning models.


This Notebook, which is compatible with logs from the AWS DeepRacer Console after Aug 2020, is a redo of Log Analysis solutions provided in the AWS DeepRacer Workshops repository. The log analysis here parses log data from AWS RoboMaker (SIM_TRACE_LOG data) and Amazon SageMaker (policy training data), and introduces some analyses that are not present in the AWS samples.

With the new AWS DeepRacer console update in Aug 2020, these logs are no longer streamed to CloudWatch Logs during training. Instead, they are downloadable from the model page in the AWS DeepRacer console, after training has terminated.

The code here:

  • is compatible with downloaded logs from the new console (after Aug 2020).
  • should be backwards compatible with DeepRacer logs previously downloaded from CloudWatch Logs too.
  • is maintained such that it can be run directly from a Amazon SageMaker Notebook instance, as long as the relative paths of the RoboMaker and SageMaker log files are specified correctly.
  • does not require access to any AWS Services (hence no awscli or boto3 required) when analysing the log data files.

Read My AWS Machine Learning Blog

In this Machine Learning blog, I explain how I used this Notebook to drive experiments and win the AWS DeepRacer F1 ProAm Race.

Watch the Technical Deep Dive Video

In this Deep Dive video, I explain how I used some of the visualizations in this Notebook to optimize racing lines and determine the performance envelope of my models.

Test-drive this Notebook!

To take this Notebook on a quick test drive, just do the following:

  • Clone this repo
  • Download your own model training log (.tar.gz file) from the AWS DeepRacer console
  • Extract the RoboMaker and SageMaker log files (found in logs/training/ in the .tar.gz), into the logs folder
  • Spin the .ipynb file up on Jupyter Notebook (works in an Amazon SageMaker Notebook instance too)
  • Edit the path to your logs in the Notebook
  • Run all cells to test the log analysis on your logs!

Credits

Thanks to:

  • The AWS DeepRacer product and data science teams who had shared the original Log Analysis code as part of the AWS DeepRacer Workshops repository.
  • AWS DeepRacer Community members who have shared ideas and contributed in one way or another.

License

This project retains the license of the aws-deepracer-workshops project from which this was based. Our understanding is that it is a license more permissive than the MIT license and allows for removing of the copyright headers.

Unless explicitly sated otherwise, this license applies to all files in this repository.

Troubleshooting

If you face problems, do reach out to the AWS DeepRacer Community Slack, on the #dr-training-log-analysis channel.

Contact

You can contact RayG through the DeepRacer Community Slack @ deepracing.io.

deepracer-log-analysis's People

Contributors

therayg 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.