Automatically load toy.yaml when no config is given
import datetime
+import sys
+
import yaml
import os
import argparse
@@ -29,6 +31,9 @@ if __name__ == '__main__':
parser.add_argument('--'+key, type=type(value))
args = parser.parse_args()
+ if not len(sys.argv) > 1:
+ args.config = 'examples/toy.yaml'
+
# optionally: load user config file (overwrites some defaults)
if args.config is not None:
if args.resume is not None:
