Skip to content

Instantly share code, notes, and snippets.

@icoxfog417
icoxfog417 / asyncio_examples.py
Last active May 20, 2019 12:35
asyncio samples
import asyncio
import concurrent.futures
import requests
Seconds = [
("first", 5),
("second", 0),
("third", 3)
]
@icoxfog417
icoxfog417 / funfun.py
Created September 20, 2016 07:00
funfun defence by openai gym
import os
import random
import gym
class Hanamichi():
def __init__(self):
self.actions = [2, 3] # up and down
self.fun = []

DQN implemented by Chainer

Model Overview

image.PNG

dummy gist for image

cartpole-q-learning

Solve CartPole environment on OpenAI Gym by simple q-learning algorithm

Model Overview

q-learning.PNG

@icoxfog417
icoxfog417 / cartpole_q_learning_images
Last active October 12, 2016 05:39
cartpole_q_learning_image
dummy for images

cartpole-q-learning

Solve CartPole environment on OpenAI Gym by simple q-learning algorithm (Parameter tuned version)

  • gamma: 0.99
  • bin size: [3, 3, 8, 5]
  • low bound: [None, -0.5, None, -math.radians(50)]
  • high bound: [None, 0.5, None, math.radians(50)]
  • learning rate update rule: max(0.1, min(0.5, 1.0 - math.log10((t + 1) / 25)))
  • epsilon update rule: max(0.01, min(1.0, 1.0 - math.log10((t + 1) / 25)))
@icoxfog417
icoxfog417 / dummy.py
Created December 31, 2016 11:31
tech circle circle fonts
print("various fonts")
circle-cut-ideas