Sync qlib
This commit is contained in:
Submodule .latent-data/qlib updated: 6ef204f190...ba56e4071e
@@ -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)
|
||||||
|
Reference in New Issue
Block a user