Sync qlib
This commit is contained in:
parent
b21eb11da4
commit
ae7136645f
@ -1 +1 @@
|
|||||||
Subproject commit 6ef204f1905602d60ba47b3e47f31d482df9f21d
|
Subproject commit ba56e4071efd1c08003eaf7e23978aaf81376dd1
|
@ -93,6 +93,7 @@ def compare_results(heads, values, names, space=10, verbose=True, sort_key=False
|
|||||||
xline = QResult.full_str(name, space) + value
|
xline = QResult.full_str(name, space) + value
|
||||||
info_str_dict["lines"].append(xline)
|
info_str_dict["lines"].append(xline)
|
||||||
if verbose:
|
if verbose:
|
||||||
|
print("\nThere are {:} algorithms.".format(len(values)))
|
||||||
print(info_str_dict["head"])
|
print(info_str_dict["head"])
|
||||||
if sort_key:
|
if sort_key:
|
||||||
lines = sorted(
|
lines = sorted(
|
||||||
@ -187,7 +188,7 @@ if __name__ == "__main__":
|
|||||||
"--save_dir",
|
"--save_dir",
|
||||||
type=str,
|
type=str,
|
||||||
nargs="+",
|
nargs="+",
|
||||||
default=["./outputs/qlib-baselines"],
|
default=[],
|
||||||
help="The checkpoint directory.",
|
help="The checkpoint directory.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
@ -199,6 +200,8 @@ if __name__ == "__main__":
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
print("Show results of {:}".format(args.save_dir))
|
print("Show results of {:}".format(args.save_dir))
|
||||||
|
if not args.save_dir:
|
||||||
|
raise ValueError("Receive no input directory for [args.save_dir]")
|
||||||
|
|
||||||
provider_uri = "~/.qlib/qlib_data/cn_data"
|
provider_uri = "~/.qlib/qlib_data/cn_data"
|
||||||
qlib.init(provider_uri=provider_uri, region=REG_CN)
|
qlib.init(provider_uri=provider_uri, region=REG_CN)
|
||||||
|
Loading…
Reference in New Issue
Block a user