Skip to content

Instantly share code, notes, and snippets.

Craig Quiter crizCraig

Block or report user

Report or block crizCraig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@crizCraig
crizCraig / muzero_pseudocode.py
Last active Dec 8, 2019
Mastering Atari, Go, Chess and Shogi by Planning with a Learned Model - Pseudocode from https://arxiv.org/abs/1911.08265 supplemental materials
View muzero_pseudocode.py
# Lint as: python3
"""Pseudocode description of the MuZero algorithm."""
# pylint: disable=unused-argument
# pylint: disable=missing-docstring
# pylint: disable=g-explicit-length-test
from __future__ import absolute_import
from __future__ import division
from __future__ import google_type_annotations
from __future__ import print_function
View gist:2e15fff780a28b4757adbf81e9e9dbd0
This file has been truncated, but you can view the full file.
:27.232 | DEBUG | deepdrive_2d.envs.env:_step:477 - Episode score 266.12, Steps: 708, Distance 19.58, Angular velocity 0.0, Speed: 2.61, Max gforce: 0.09, Avg gforce: 0.03, Trip pct 95.28, Angle accuracy 0.0, Num episodes 521
2019-12-06 17:31:27.963 | SUCCESS | deepdrive_2d.envs.env:get_done:560 - Reached destination! Steps: 819
2019-12-06 17:31:27.963 | DEBUG | deepdrive_2d.envs.env:_step:477 - Episode score 299.97, Steps: 820, Distance 24.26, Angular velocity 0.0, Speed: 2.71, Max gforce: 0.09, Avg gforce: 0.02, Trip pct 96.07, Angle accuracy 0.0, Num episodes 522
2019-12-06 17:31:28.836 | SUCCESS | deepdrive_2d.envs.env:get_done:560 - Reached destination! Steps: 972
2019-12-06 17:31:28.837 | DEBUG | deepdrive_2d.envs.env:_step:477 - Episode score 325.85, Steps: 973, Distance 31.91, Angular velocity 0.0, Speed: 2.8, Max gforce: 0.09, Avg gforce: 0.02, Trip pct 97.01, Angle accuracy 0.0, Num episodes 523
View gist:19626fdcaa2509d9593015ee889228c0
This file has been truncated, but you can view the full file.
velocity 0.0, Speed: 3.24, Max gforce: 0.09, Avg gforce: 0.05, Trip pct 94.11, Angle accuracy 0.0, Num episodes 20638
2019-12-06 15:32:08.903 | SUCCESS | deepdrive_2d.envs.env:get_done:559 - Reached destination! Steps: 96
2019-12-06 15:32:08.904 | DEBUG | deepdrive_2d.envs.env:_step:476 - Episode score 613.24, Steps: 97, Distance 24.4, Angular velocity 0.0, Speed: 3.44, Max gforce: 0.09, Avg gforce: 0.04, Trip pct 97.05, Angle accuracy 0.0, Num episodes 20639
2019-12-06 15:32:09.019 | SUCCESS | deepdrive_2d.envs.env:get_done:559 - Reached destination! Steps: 108
2019-12-06 15:32:09.020 | DEBUG | deepdrive_2d.envs.env:_step:476 - Episode score 719.49, Steps: 109, Distance 28.63, Angular velocity 0.0, Speed: 3.53, Max gforce: 0.09, Avg gforce: 0.03, Trip pct 97.69, Angle accuracy 0.0, Num episodes 20640
2019-12-06 15:32:09.115 | SUCCESS | deepdrive_2d.envs.env:get_done:559 - Reached destination! Steps: 89
@crizCraig
crizCraig / gist:97eed7f0d9fe1b9c37e74a475ec03521
Created Nov 30, 2019
plus accel - speed, angle, gforce reward
View gist:97eed7f0d9fe1b9c37e74a475ec03521
This file has been truncated, but you can view the full file.
89, Angular velocity 3.31, Speed: 2.13, Max gforce: 1.22, Avg gforce: 0.21, Trip pct 74.17, Angle accuracy 1.08, Num episodes 522
2019-11-30 13:23:35.498 | WARNING | deepdrive_2d.envs.env:get_done:522 - Harmful g-forces, game over
2019-11-30 13:23:35.498 | DEBUG | deepdrive_2d.envs.env:_step:458 - Episode score 97.78, Steps: 69, Distance 5.61, Angular velocity 2.7, Speed: 2.16, Max gforce: 1.18, Avg gforce: 0.22, Trip pct 70.89, Angle accuracy 1.11, Num episodes 523
2019-11-30 13:23:35.563 | WARNING | deepdrive_2d.envs.env:get_done:522 - Harmful g-forces, game over
2019-11-30 13:23:35.563 | DEBUG | deepdrive_2d.envs.env:_step:458 - Episode score 84.38, Steps: 54, Distance 4.38, Angular velocity 0.92, Speed: 2.12, Max gforce: 1.02, Avg gforce: 0.21, Trip pct 55.52, Angle accuracy 1.1, Num episodes 524
2019-11-30 13:23:35.627 | WARNING | deepdrive_2d.envs.env:get_done:522 - Harmful g-forces, game over
View gist:f557b9738226ca5d5a739a08a8443993
This file has been truncated, but you can view the full file.
Trip pct 88.9, Angle accuracy 0.98, Num episodes 33665
2019-11-24 11:39:37.319 | SUCCESS | deepdrive_2d.envs.env:get_done:530 - Reached destination! Steps: 43
2019-11-24 11:39:37.319 | DEBUG | deepdrive_2d.envs.env:_step:447 - Episode score 204.11, Steps: 44, Distance 5.37, Angular velocity -0.23, Speed: 2.38, Max gforce: 0.06, Avg gforce: 0.06, Trip pct 86.25, Angle accuracy 0.97, Num episodes 33666
2019-11-24 11:39:37.374 | SUCCESS | deepdrive_2d.envs.env:get_done:530 - Reached destination! Steps: 49
2019-11-24 11:39:37.374 | DEBUG | deepdrive_2d.envs.env:_step:447 - Episode score 234.25, Steps: 50, Distance 6.86, Angular velocity -0.22, Speed: 2.66, Max gforce: 0.07, Avg gforce: 0.06, Trip pct 90.08, Angle accuracy 0.97, Num episodes 33667
2019-11-24 11:39:37.432 | SUCCESS | deepdrive_2d.envs.env:get_done:530 - Reached destination! Steps: 52
View bash_boilerplate.sh
#!/usr/bin/env bash
set -e # Abort script at first error, when a command exits with non-zero status (except in until or while loops, if-tests, list constructs)
set -u # Attempt to use undefined variable outputs error message, and forces an exit
set -x # Similar to verbose mode (-v), but expands commands
set -o pipefail # Causes a pipeline to return the exit status of the last command in the pipe that returned a non-zero return value.
@crizCraig
crizCraig / log.txt
Created Jul 30, 2019
Deepdrive Unreal Build success after dialog
View log.txt
/home/a/UnrealInstalled/Engine/Binaries/Linux/UE4Editor /home/a/src/deepdrive-sim/DeepDrive.uproject
Increasing per-process limit of core file size to infinity.
LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
LogInit: Display: Running engine for game: DeepDrive
LogPakFile: Registered encryption key '00000000000000000000000000000000': 0 pak files mounted, 0 remain pending
LogPlatformFile: Not using cached read wrapper
LogTaskGraph: Started task graph with 5 named threads and 20 total threads with 3 sets of task threads.
LogStats: Stats thread started at 0.048704
LogICUInternationalization: ICU TimeZone Detection - Raw Offset: -8:00, Platform Override: ''
LogPluginManager: Mounting plugin DatasmithContent
View results.json
{
"score": 35.55670358192535,
"gist": "not uploaded",
"sensorimotor_specific": {
"num_episodes": 1,
"median_fps": 4.502848922376865,
"num_steps": 101
},
"driving_specific": {
"max_gforce": 0.4195085098619047,
@crizCraig
crizCraig / gist:b9f9f86dc404a5658a85328e490d585e
Created Jul 10, 2019
UnrealEnginePythonTutorial introspection output
View gist:b9f9f86dc404a5658a85328e490d585e
[2019.07.10-21.57.23:071][235]LogPython: Methods -------------------------------
[2019.07.10-21.57.23:071][235]LogPython:
[2019.07.10-21.57.23:071][235]LogPython: __call__
[2019.07.10-21.57.23:071][235]LogPython:
[2019.07.10-21.57.23:071][235]LogPython: __class__
[2019.07.10-21.57.23:072][235]LogPython:
[2019.07.10-21.57.23:072][235]LogPython: __delattr__
View nearest_neighbor.py
class timer:
def __init__(self, msg, fmt="%0.3g"):
self.msg = msg
self.fmt = fmt
def __enter__(self):
self.start = time.process_time()
return self
def __exit__(self, *args):
You can’t perform that action at this time.