Skip to content

Instantly share code, notes, and snippets.

View xiaxx244's full-sized avatar
🥎
Focusing

Youya Xia xiaxx244

🥎
Focusing
View GitHub Profile
@takuseno
takuseno / reptile.py
Last active November 15, 2020 11:43
TensorFlow version of reptile sample https://blog.openai.com/reptile/
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
mode = 'maml'
seed = 0
plot = True
innerstepsize = 0.02 # stepsize in inner SGD
innerepochs = 1 # number of epochs of each inner SGD
outerstepsize0 = 0.1 if mode == 'reptile' else 0.001 # stepsize of outer optimization, i.e., meta-optimization
@douglasrizzo
douglasrizzo / tf_obj_tutorial.md
Last active November 15, 2023 22:36
TensorFlow Object Detection Model Training
"""
solving pendulum using actor-critic model
"""
import gym
import numpy as np
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Input
from keras.layers.merge import Add, Multiply
from keras.optimizers import Adam