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"]