How to train your own object detection models using the TensorFlow Object Detection API (2020 Update)
This started as a summary of this nice tutorial, but has since then become its own thing.
""" | |
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 |
This started as a summary of this nice tutorial, but has since then become its own thing.
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 |