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
""" | |
Deep Deterministic Policy Gradients (DDPG) | |
https://arxiv.org/pdf/1509.02971.pdf | |
TODO: Batch Normalization Bug | |
""" | |
import argparse | |
import random | |
import numpy as np | |
import gym |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Simple implemntation of | |
"Efficient Parallel Methods for Deep Reinforcement Learning" | |
https://arxiv.org/abs/1705.04862 | |
""" | |
import argparse | |
import tensorflow as tf | |
import numpy as np | |
import gym |
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
library(ggplot2) | |
secant <- function(fn) { | |
a <- -100 | |
b <- 100 | |
for (i in 1:1000) { | |
numerator <- b * fn(a) - a * fn(b) | |
denominator <- fn(a) - fn(b) + 1e-9 | |
x <- numerator / denominator | |
a <- b |
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
"""Simple example on how to log scalars and images to tensorboard without tensor ops.""" | |
__author__ = "Michael Gygli" | |
import tensorflow as tf | |
from StringIO import StringIO | |
import matplotlib.pyplot as plt | |
import numpy as np | |
class Logger(object): | |
"""Logging in tensorboard without tensorflow ops.""" |
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 tensorflow as tf | |
import numpy as np | |
import threading | |
import gym | |
import os | |
from scipy.misc import imresize | |
def copy_src_to_dst(from_scope, to_scope): | |
"""Creates a copy variable weights operation |
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
#!/usr/bin/env bash | |
input_video=$1 | |
echo "Input Video: $input_video" | |
if [ -z "$1" ]; then | |
read input_video | |
fi | |
echo "Skip Second: " |
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
""" | |
Simple policy gradient in Keras | |
""" | |
import gym | |
import numpy as np | |
from keras import layers | |
from keras.models import Model | |
from keras import backend as K |
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
#include <iostream> | |
using namespace std; | |
int* testCaseGenerator(int n) { | |
int* result = new int[n]; | |
for(int i = 0; i < n; ++i) { | |
result[i] = std::rand() % 99; | |
} | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.