mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-21 11:17:34 +08:00
init commit
This commit is contained in:
17
qlib/contrib/tuner/space.py
Normal file
17
qlib/contrib/tuner/space.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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"]],
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user