Skip to content

Commit

Permalink
Better defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
notadamking committed Jul 10, 2019
1 parent 97427fa commit b1ca6f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
args = trader_cli.get_args()

rewards = {"incremental-profit": IncrementalProfit, "weighted-unrealized-profit": WeightedUnrealizedProfit}
reward_strategy = rewards[args.reward_strategy]
reward_strategy = rewards[args.reward_strat]


def run_optimize(args, logger):
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/RLTraderCLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self):

self.parser.add_argument("--data-provider", "-d", type=str, default="static")
self.parser.add_argument("--input-data-path", "-n", type=str, default="data/input/coinbase-1h-btc-usd.csv")
self.parser.add_argument("--reward-strategy", "-r", type=str, default="incremental-profit")
self.parser.add_argument("--reward-strategy", "-r", type=str, default="incremental-profit", dest="reward_strat")
self.parser.add_argument("--pair", "-p", type=str, default="BTC/USD")
self.parser.add_argument("--debug", "-D", action='store_false')
self.parser.add_argument('--mini-batches', type=int, default=1, help='Mini batches', dest='n_minibatches')
Expand Down
2 changes: 1 addition & 1 deletion optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ def optimize_code(params):
from lib.RLTrader import RLTrader

trader = RLTrader(**params)
trader.train(test_trained_model=True, render_trained_model=True)
trader.train(test_trained_model=True, render_test_env=True, render_report=True)

0 comments on commit b1ca6f9

Please sign in to comment.