1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-09 05:50:59 +08:00
Files
qlib/qlib/contrib/tuner/space.py
2020-09-22 01:43:21 +00:00

18 lines
397 B
Python

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
from hyperopt import hp
TopkAmountStrategySpace = {
"topk": hp.choice("topk", [30, 35, 40]),
"buffer_margin": hp.choice("buffer_margin", [200, 250, 300]),
}
QLibDataLabelSpace = {
"labels": hp.choice(
"labels",
[["Ref($vwap, -2)/Ref($vwap, -1) - 1"], ["Ref($close, -5)/$close - 1"]],
)
}