mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-10 22:36:55 +08:00
Successfully run training
This commit is contained in:
@@ -67,9 +67,16 @@ class TestNN(TestAutoData):
|
||||
"dropout":0.,
|
||||
},
|
||||
),
|
||||
GeneralPTNN(
|
||||
n_epochs=2,
|
||||
pt_model_uri="qlib.contrib.model.pytorch_nn.Net", # it is a MLP
|
||||
pt_model_kwargs={
|
||||
"input_dim":3,
|
||||
},
|
||||
),
|
||||
]
|
||||
|
||||
for ds, model in zip((tsds, tbds), model_l):
|
||||
for ds, model in reversed(list(zip((tsds, tbds), model_l))):
|
||||
model.fit(ds) # It works
|
||||
model.predict(ds) # It works
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user