This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: 'upload-pipeline-version' | |
name: 'curlimages/curl:7.72.0' | |
args: [ | |
'-v', | |
'--retry-connrefused', | |
'--connect-timeout', '5', | |
'--max-time', '10', | |
'--retry', '5', | |
'--retry-delay', '0', | |
'--retry-max-time', '40', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: 'port-forward' | |
name: 'gcr.io/cloud-builders/docker' | |
args: [ | |
'run', | |
'-itd', | |
'--network-alias', 'ml-pipeline.local', | |
'-e', 'CLOUDSDK_COMPUTE_ZONE=${_KF_ZONE}', | |
'-e', 'CLOUDSDK_CONTAINER_CLUSTER=${_KF_CLUSTER}', | |
'-e', 'CLOUDSDK_CORE_PROJECT=${_KF_PROJECT}', | |
'-p', '8888:8888', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: 'list-pipelines' | |
name: 'curlimages/curl:7.72.0' | |
args: [ | |
'-v', | |
'--retry-connrefused', | |
'--connect-timeout', '5', | |
'--max-time', '10', | |
'--retry', '5', | |
'--retry-delay', '0', | |
'--retry-max-time', '40', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en" style="height:100%"><head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Pulsars Rollouts</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model { | |
ssd { | |
num_classes: 1 | |
box_coder { | |
faster_rcnn_box_coder { | |
y_scale: 10.0 | |
x_scale: 10.0 | |
height_scale: 5.0 | |
width_scale: 5.0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model { | |
ssd { | |
num_classes: 1 | |
box_coder { | |
faster_rcnn_box_coder { | |
y_scale: 10.0 | |
x_scale: 10.0 | |
height_scale: 5.0 | |
width_scale: 5.0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env = gym.make('neyboy-v0') | |
while True: | |
ev = screen.get_key() | |
action = 0 | |
if ev in (Screen.KEY_LEFT, ord('A'), ord('a')): | |
action = 1 | |
elif ev in (Screen.KEY_RIGHT, ord('D'), ord('d')): | |
action = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gym | |
import gym_neyboy | |
env = gym.make('neyboy-v0') | |
env.reset() | |
for _ in range(10): | |
long_running_process() | |
env.step(env.action_space.sample()) # take a random action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GameState = namedtuple('GameState', ['score', 'status', 'snapshot', 'dimensions']) |