This file contains hidden or 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
| FROM debian:latest | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| ca-certificates \ | |
| cmake \ | |
| curl \ | |
| git \ | |
| pkg-config \ | |
| gcc-arm-linux-gnueabihf \ |
This file contains hidden or 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
| ### Keybase proof | |
| I hereby claim: | |
| * I am yazzyyaz on github. | |
| * I am yazanator (https://keybase.io/yazanator) on keybase. | |
| * I have a public key ASBU-_BS2dPw4QzFP9JinhMy3roSsbTXqdgU5WspddP3rgo | |
| To claim this, I am signing this object: |
This file contains hidden or 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 time | |
| from multiprocessing import Process, Pipe | |
| import numpy as np | |
| class EnvWorker(Process): | |
| def __init__(self, env_name, pipe, name=None, NotDisplay=True, delay=0): | |
| Process.__init__(self, name=name) | |
| self.env = gym.make(env_name) |
This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.animation as animation | |
| import copy | |
| class Particle(object): | |
| def __init__(self, position, velocity): | |
| self.position = copy.copy(position) | |
| self.velocity = copy.copy(velocity) | |
| self.best_position = copy.copy(position) |
NewerOlder