mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
hats5
This commit is contained in:
@@ -32,7 +32,11 @@ task:
|
||||
loss: RMSE
|
||||
learning_rate: 0.0421
|
||||
subsample: 0.8789
|
||||
max_depth: 6
|
||||
num_leaves: 100
|
||||
thread_count: 20
|
||||
grow_policy: Lossguide
|
||||
boostrap_type: Poisson
|
||||
dataset:
|
||||
class: DatasetH
|
||||
module_path: qlib.data.dataset
|
||||
|
||||
@@ -232,7 +232,7 @@ class TFTModel(ModelFT):
|
||||
p90_forecast = self.data_formatter.format_predictions(output_map["p90"])
|
||||
tf.keras.backend.set_session(default_keras_session)
|
||||
|
||||
predict = format_score(p90_forecast, "pred", 0) # self.label_shift
|
||||
predict = format_score(p90_forecast, "pred", 0) # self.label_shift
|
||||
label = format_score(targets, "label", 0)
|
||||
# ===========================Predicting Process===========================
|
||||
return predict, label
|
||||
|
||||
@@ -178,8 +178,7 @@ def get_all_folders() -> dict:
|
||||
folders = dict()
|
||||
for f in os.scandir("benchmarks"):
|
||||
path = Path("benchmarks") / f.name
|
||||
if f.name != "TFT":
|
||||
folders[f.name] = str(path.resolve())
|
||||
folders[f.name] = str(path.resolve())
|
||||
return folders
|
||||
|
||||
|
||||
|
||||
@@ -21,18 +21,16 @@ class DataLoader(abc.ABC):
|
||||
@abc.abstractmethod
|
||||
def load(self, instruments, start_time=None, end_time=None) -> pd.DataFrame:
|
||||
"""
|
||||
load the data as pd.DataFrame
|
||||
load the data as pd.DataFrame.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
self : [TODO:type]
|
||||
[TODO:description]
|
||||
instruments : [TODO:type]
|
||||
[TODO:description]
|
||||
start_time : [TODO:type]
|
||||
[TODO:description]
|
||||
end_time : [TODO:type]
|
||||
[TODO:description]
|
||||
instruments : str or dict
|
||||
it can either be the market name or the config file of instruments generated by InstrumentProvider.
|
||||
start_time : str
|
||||
start of the time range.
|
||||
end_time : str
|
||||
end of the time range.
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user