mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-13 15:56:57 +08:00
Support auto skip flawed data
This commit is contained in:
@@ -283,10 +283,14 @@ class SigAnaRecord(RecordTemp):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass # continue to generating metrics
|
pass # continue to generating metrics
|
||||||
else:
|
else:
|
||||||
logger.info("The results has previously generated, generation skipped.")
|
logger.info("The results has previously generated, Generation skipped.")
|
||||||
return
|
return
|
||||||
|
|
||||||
self.check()
|
try:
|
||||||
|
self.check()
|
||||||
|
except FileNotFoundError:
|
||||||
|
logger.warning("The dependent data does not exists. Generation skipped.")
|
||||||
|
return
|
||||||
|
|
||||||
pred = self.load("pred.pkl")
|
pred = self.load("pred.pkl")
|
||||||
if label is None:
|
if label is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user