aws-solutions-library-samples / guidance-for-training-an-aws-deepracer-model-using-amazon-sagemaker

DeepRacer workshop content. This Guidance demonstrates how software developers can use an Amazon SageMaker Notebook instance to directly train and evaluate AWS DeepRacer models with full control
https://aws.amazon.com/solutions/guidance/training-an-aws-deepracer-model-using-amazon-sagemaker/
MIT No Attribution
1.24k stars 714 forks source link

Change track size #38

Closed arrickx closed 1 year ago

arrickx commented 5 years ago

Analyze the reward distribution for your reward function

because Kumo Torakku has negative y values, I shamelessly took RichardFan's modificationg for plot_track and refactored it to offer an x_shift and y_shift They may not apply to other tracks. You will need to change it in the future. Simply add parameters: track_size=(700,1000), y_shift=300

track = la.plot_track(df, l_center_line, l_inner_border, l_outer_border)

plt.title("Reward distribution for all actions ")
im = plt.imshow(track, cmap='hot', interpolation='bilinear', origin="lower") 

I found problem when unquote the track_size line. It pop up an error

  File "<ipython-input-36-3595092372fb>", line 4
    track_size=(700,1000), y_shift=300
              ^
SyntaxError: can't assign to literal

Hopefully someone can help to fix it. Thanks!