Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
AAAU | |
AADR | |
AAXJ | |
ABEQ | |
ACES | |
ACIO | |
ACSG | |
ACSI | |
ACT | |
ACWF |
def extract_train_data(winner, replayName): | |
with open('replays/' + replayName) as replay_file: | |
game = json.load(replay_file) | |
height = game['height'] | |
width = game['width'] | |
player_id = get_id(game, winner) | |
print "Winner:", winner, "(", player_id, ")" | |
num_frames = game['num_frames'] | |
dataX = [] | |
dataY = [] |
import numpy as np | |
import gym | |
from keras.models import Sequential | |
from keras.layers import Dense, Activation, Flatten | |
from keras.optimizers import Adam | |
from rl.agents.dqn import DQNAgent | |
from rl.policy import BoltzmannQPolicy, LinearAnnealedPolicy, EpsGreedyQPolicy | |
from rl.memory import SequentialMemory |