Deepracer-utils

Latest version: v1.0.11

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.9

If you have AWS DeepRacer console logs downloaded extracted in folder `model-name`, simply do

from deepracer.logs import DeepRacerLog
log = DeepRacerLog("path/to/model-name")
log.load()

df = log.dataframe()

try:
print(log.agent_and_network())
print("-------------")
print(log.hyperparameters())
print("-------------")
print(log.action_space())
except Exception:
print("Robomaker logs not available")

Not that everything but log.load() works only if the robomaker log is also available (so only for console logs for now)

There is a known issue where converting a dataframe into simulation_aggregates fails. This is due to a slight naming mismatch. Until it's fixed you can work around it with

df["throttle"]=df["speed"]
df["timestamp"]=df["tstamp"]
df["steer"]=df["steering_angle"]

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.