1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-02 18:40:58 +08:00

Support auto skip flawed data

This commit is contained in:
Young
2021-11-13 07:44:26 +00:00
parent b223c4304d
commit 1e410c99be

View File

@@ -283,10 +283,14 @@ class SigAnaRecord(RecordTemp):
except FileNotFoundError:
pass # continue to generating metrics
else:
logger.info("The results has previously generated, generation skipped.")
logger.info("The results has previously generated, Generation skipped.")
return
self.check()
try:
self.check()
except FileNotFoundError:
logger.warning("The dependent data does not exists. Generation skipped.")
return
pred = self.load("pred.pkl")
if label is None: