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 numpy as np | |
n = 100 | |
k = 10000 | |
clip_value = 3 | |
p_cheat = 0.5 | |
def generate_test_results(): |
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 time | |
import gym | |
import numpy as np | |
import tensorflow as tf | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--gamma', type=float, default=0.995, help='a discount factor') | |
parser.add_argument('--num_iter', type=int, default=1000, help='maximum number of iterations') |