Skip to content

Commit

Permalink
fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sph3rex committed Jul 2, 2019
1 parent 0527099 commit 7e35319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/RLTrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down
2 changes: 1 addition & 1 deletion lib/TraderArgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion run-with-docker
Original file line number Diff line number Diff line change
Expand Up @@ -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
python /code/app.py opt-train-test

0 comments on commit 7e35319

Please sign in to comment.