Refine lib -> xautodl
This commit is contained in:
		| @@ -24,18 +24,13 @@ import copy | ||||
| from datetime import datetime | ||||
| import argparse | ||||
| from collections import OrderedDict | ||||
| from pathlib import Path | ||||
| from pprint import pprint | ||||
| import ruamel.yaml as yaml | ||||
|  | ||||
| lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve() | ||||
| if str(lib_dir) not in sys.path: | ||||
|     sys.path.insert(0, str(lib_dir)) | ||||
|  | ||||
| from config_utils import arg_str2bool | ||||
| from procedures.q_exps import update_gpu | ||||
| from procedures.q_exps import update_market | ||||
| from procedures.q_exps import run_exp | ||||
| from xautodl.config_utils import arg_str2bool | ||||
| from xautodl.procedures.q_exps import update_gpu | ||||
| from xautodl.procedures.q_exps import update_market | ||||
| from xautodl.procedures.q_exps import run_exp | ||||
|  | ||||
| import qlib | ||||
| from qlib.utils import init_instance_by_config | ||||
|   | ||||
| @@ -7,15 +7,11 @@ import os, re, sys, argparse | ||||
| import numpy as np | ||||
| from typing import List, Text | ||||
| from collections import defaultdict, OrderedDict | ||||
| from pathlib import Path | ||||
| from pprint import pprint | ||||
| import ruamel.yaml as yaml | ||||
|  | ||||
| lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve() | ||||
| if str(lib_dir) not in sys.path: | ||||
|     sys.path.insert(0, str(lib_dir)) | ||||
| from xautodl.config_utils import arg_str2bool | ||||
|  | ||||
| from config_utils import arg_str2bool | ||||
| import qlib | ||||
| from qlib.config import REG_CN | ||||
| from qlib.workflow import R | ||||
|   | ||||
| @@ -6,16 +6,11 @@ | ||||
| # - https://github.com/microsoft/qlib/blob/main/examples/workflow_by_code.py | ||||
| # python exps/trading/workflow_tt.py --gpu 1 --market csi300 | ||||
| ##################################################### | ||||
| import sys, argparse | ||||
| from pathlib import Path | ||||
| import argparse | ||||
|  | ||||
| lib_dir = (Path(__file__).parent / ".." / ".." / "lib").resolve() | ||||
| if str(lib_dir) not in sys.path: | ||||
|     sys.path.insert(0, str(lib_dir)) | ||||
|  | ||||
| from procedures.q_exps import update_gpu | ||||
| from procedures.q_exps import update_market | ||||
| from procedures.q_exps import run_exp | ||||
| from xautodl.procedures.q_exps import update_gpu | ||||
| from xautodl.procedures.q_exps import update_market | ||||
| from xautodl.procedures.q_exps import run_exp | ||||
|  | ||||
| import qlib | ||||
| from qlib.config import C | ||||
|   | ||||
		Reference in New Issue
	
	Block a user