mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
Fix tft
This commit is contained in:
@@ -201,9 +201,7 @@ Here is a list of models built on `Qlib`.
|
|||||||
- [LSTM based on pytorcn](qlib/contrib/model/pytorch_lstm.py)
|
- [LSTM based on pytorcn](qlib/contrib/model/pytorch_lstm.py)
|
||||||
- [ALSTM based on pytorcn](qlib/contrib/model/pytorch_alstm.py)
|
- [ALSTM based on pytorcn](qlib/contrib/model/pytorch_alstm.py)
|
||||||
- [GATs based on pytorch](qlib/contrib/model/pytorch_gats.py)
|
- [GATs based on pytorch](qlib/contrib/model/pytorch_gats.py)
|
||||||
- [TabNet based on pytorch](qlib/contrib/model/tabnet.py)
|
|
||||||
- [SFM based on pytorch](qlib/contrib/model/pytorch_sfm.py)
|
- [SFM based on pytorch](qlib/contrib/model/pytorch_sfm.py)
|
||||||
- [HATs based on pytorch](qlib/contrib/model/pytorch_hats.py)
|
|
||||||
- [TFT based on tensorflow](examples/benchmarks/TFT/tft.py)
|
- [TFT based on tensorflow](examples/benchmarks/TFT/tft.py)
|
||||||
|
|
||||||
Your PR of new Quant models is highly welcomed.
|
Your PR of new Quant models is highly welcomed.
|
||||||
|
|||||||
@@ -233,9 +233,8 @@ class TFTModel(ModelFT):
|
|||||||
tf.keras.backend.set_session(default_keras_session)
|
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===========================
|
# ===========================Predicting Process===========================
|
||||||
return predict, label
|
return predict
|
||||||
|
|
||||||
def finetune(self, dataset: DatasetH):
|
def finetune(self, dataset: DatasetH):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user