зеркало из https://github.com/microsoft/qlib.git
Fix CI (#1529)
This commit is contained in:
Родитель
efffb2819a
Коммит
0e9ac9dce7
|
@ -300,10 +300,15 @@ class Sandwich(Model):
|
|||
return np.mean(losses), np.mean(scores)
|
||||
|
||||
def fit(
|
||||
self, dataset: DatasetH, evals_result=dict(), save_path=None,
|
||||
self,
|
||||
dataset: DatasetH,
|
||||
evals_result=dict(),
|
||||
save_path=None,
|
||||
):
|
||||
df_train, df_valid, df_test = dataset.prepare(
|
||||
["train", "valid", "test"], col_set=["feature", "label"], data_key=DataHandlerLP.DK_L,
|
||||
["train", "valid", "test"],
|
||||
col_set=["feature", "label"],
|
||||
data_key=DataHandlerLP.DK_L,
|
||||
)
|
||||
if df_train.empty or df_valid.empty:
|
||||
raise ValueError("Empty data from dataset, please check your dataset config.")
|
||||
|
|
Загрузка…
Ссылка в новой задаче