From 7e3531908c3bee4a0ba73c2a35fb15fe499bc792 Mon Sep 17 00:00:00 2001 From: Dan Hawk Date: Tue, 2 Jul 2019 22:26:57 +0300 Subject: [PATCH] fix arguments --- lib/RLTrader.py | 3 +-- lib/TraderArgs.py | 2 +- run-with-docker | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/RLTrader.py b/lib/RLTrader.py index 8d447c8..a9a544f 100644 --- a/lib/RLTrader.py +++ b/lib/RLTrader.py @@ -41,8 +41,7 @@ def initialize_data(self, provider, input_data_path): if 'static' == provider: if self.input_data_path is None: class_dir = os.path.dirname(__file__) - data_path = os.path.realpath(os.path.join(class_dir, "../{}".format(input_data_path))) - self.input_data_path = os.path.join(data_path, 'coinbase-1h-btc-usd.csv') + self.input_data_path = os.path.realpath(os.path.join(class_dir, "../{}".format(input_data_path))) data_columns = {'Date': 'Date', 'Open': 'Open', 'High': 'High', 'Low': 'Low', 'Close': 'Close', 'Volume': 'VolumeFrom'} diff --git a/lib/TraderArgs.py b/lib/TraderArgs.py index 7e7a74d..831825c 100644 --- a/lib/TraderArgs.py +++ b/lib/TraderArgs.py @@ -8,7 +8,7 @@ def __init__(self): self.parser = argparse.ArgumentParser(description='Trainer', formatter_class=formatter) self.parser.add_argument("--data-provider", "-o", type=str, default="static") - self.parser.add_argument("--input-data-path", "-t", type=str, default="data/input") + self.parser.add_argument("--input-data-path", "-t", type=str, default="data/input/coinbase-1h-btc-usd.csv") self.parser.add_argument("--pair", "-p", type=str, default="BTC/USD") self.parser.add_argument("--debug", "-n", action='store_false') self.parser.add_argument('--mini-batches', type=int, default=1, help='Mini batches', dest='nminibatches') diff --git a/run-with-docker b/run-with-docker index a3a8077..1fc8585 100755 --- a/run-with-docker +++ b/run-with-docker @@ -59,4 +59,4 @@ docker run \ --tty \ --volume "${CWD}":/code \ "$N" \ - python /code/app.py optimize && python /code/app.py train && python /code/app.py test \ No newline at end of file + python /code/app.py opt-train-test \ No newline at end of file