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 gym_building | |
import random | |
import numpy as np | |
from collections import namedtuple | |
import torch | |
import torch.nn as nn | |
import torch.optim as optim |
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
""" Interface with the PLE environment | |
Authors: Vincent Francois-Lavet, David Taralla | |
Modified by: Norman Tasfi | |
""" | |
import numpy as np | |
import cv2 | |
from ple import PLE | |
from deeprl.base_classes import Environment |
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 warnings | |
from itertools import cycle, izip | |
from sklearn.utils import gen_even_slices | |
from sklearn.utils import shuffle | |
from sklearn.base import BaseEstimator | |
from sklearn.base import ClassifierMixin | |
from sklearn.preprocessing import LabelBinarizer |
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
*rc.Send("LRANGE", "ASMS::accountID:"+aID+"::deviceID:", 0, listLength) | |
*rc.Send("LRANGE", "ASMS::accountID:"+aID+"::deviceID:", 0, listLength) | |
*rc.Flush() | |
deviceID, err = *rc.Recieve() | |
if err != nil { | |
panic(err) | |
} //end if |