Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Add Notebook Dedicated to Local Training (local-training_analysis.ipynb) #8

Open
wants to merge 2 commits into
base: enhance-log-analysis
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/img/local-training_analysis-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/local-training_analysis-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/local-training_analysis-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/local-training_analysis-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/local-training_analysis-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/local-training_analysis-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
71 changes: 71 additions & 0 deletions docs/local-training_analysis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Local Training analysis for DeepRacer

## Contents:

1. [Start Jupyter Notebook](#Start-Jupyter-Notebook)
2. [Define Deep Racer Variables](#Define-Deep-Racer-Variables)
3. [Define Log File to Analyse](#Define-Log-File-to-Analyse)


## Start Jupyter Notebook

1. Using a terminal window, start the Jupyter Notebook Server:

```terminal
jupyter notebook
```

2. Using your browser of choice, open the http link that is outputted to your terminal window from step 1.
* Expect the link to look similar to this:

```terminal
http://localhost:8888/?token=a83bae3462a7f8dd25e802254eef82023517945983a0f325
```

3. Use the web page that is displayed to navigate to `aws-deepracer-workshopd/log-analysis`

![local-training_analysis-01.png](./img/local-training_analysis-01.png)

![local-training_analysis-02.png](./img/local-training_analysis-02.png)

![local-training_analysis-03.png](./img/local-training_analysis-03.png)

4. Use the web page that is displayed to open to `local-training_analysis.ipynb`

![local-training_analysis-04.png](./img/local-training_analysis-04.png)

## Define Deep Racer Variables

1. In the `How-To-Use` area at the top of the Notebook, click on the first link to `Define Deep Racer Variables`.
2. Edit the Four Variables in this section to match your environment:

```python
# Define the Training Track
training_track = "Canada_Training.npy"

# Define the Root Directory of your Local Training Repository
deep_racer_path = "/home/tony/git/deepracer-for-dummies"

# Define location of Log Files
log_file_path = "%s/docker/volumes/robo/checkpoint/log" % deep_racer_path

# Define the location of the Hyperparameters file
hyperparameters_file_path = "%s/deepracer/rl_coach/rl_deepracer_coach_robomaker.py" % deep_racer_path
```

![local-training_analysis-05.png](./img/local-training_analysis-05.png)

## Define Log File to Analyse

1. Just below the `Define Deep Racer Variables` cell, click on the link to navigate to `Define Log File to Analyse`.
2. Set the log file to analyse.
* The latest Log File would be: `log_files[0][0]`
* The 2nd last Log File would be: `log_files[0][1]`
* etc...

```python
# Set the Latest Log File as the one to be analysed
fname = log_files[0][0]
```

![local-training_analysis-06.png](./img/local-training_analysis-06.png)
3,087 changes: 3,087 additions & 0 deletions log-analysis/local-training_analysis.ipynb

Large diffs are not rendered by default.