Commit 22a669d6 authored by Raymond Yuan's avatar Raymond Yuan
Browse files

remove unnecessary func

parent d5aba73e
...@@ -17,15 +17,6 @@ from tensorflow.python.keras import layers ...@@ -17,15 +17,6 @@ from tensorflow.python.keras import layers
tf.enable_eager_execution() tf.enable_eager_execution()
def str2bool(v):
if v.lower() in ('yes', 'true', 't', 'y', '1'):
return True
elif v.lower() in ('no', 'false', 'f', 'n', '0'):
return False
else:
raise argparse.ArgumentTypeError('Boolean value expected.')
parser = argparse.ArgumentParser(description='Run A3C algorithm on the game ' parser = argparse.ArgumentParser(description='Run A3C algorithm on the game '
'Cartpole.') 'Cartpole.')
parser.add_argument('--algorithm', default='a3c', type=str, parser.add_argument('--algorithm', default='a3c', type=str,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment