1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-15 16:56:54 +08:00

fix OPDT_backtest bugs

This commit is contained in:
Mingzhe Han
2021-02-24 13:44:20 +08:00
parent 1f28044d84
commit e6dfccce2f
4 changed files with 12 additions and 13 deletions

View File

@@ -52,7 +52,7 @@ def w_order(f, start, end):
all_path = os.path.join(data_path, "order/all/")
if not os.path.exists(all_path):
os.makedirs(all_path)
order_test.to_pickle(all_path + f[:-9] + '.target')
order.to_pickle(all_path + f[:-9] + '.target')
return 0
res = Parallel(n_jobs=64)(delayed(w_order)(f, 0, 239) for f in os.listdir(in_dir))