1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-09 14:00:55 +08:00

Add some misc features. (#1816)

* Normal mod

* Black linting

* Linting
This commit is contained in:
you-n-g
2024-06-26 18:34:00 +08:00
committed by GitHub
parent cde80206e4
commit 5190332c7e
15 changed files with 290 additions and 76 deletions

View File

@@ -63,6 +63,7 @@ class LinearModel(Model):
df_train = pd.concat([df_train, df_valid])
except KeyError:
get_module_logger("LinearModel").info("include_valid=True, but valid does not exist")
df_train = df_train.dropna()
if df_train.empty:
raise ValueError("Empty data from dataset, please check your dataset config.")
if reweighter is not None: