From 9c8d423a86ec4c2ef306e6ac80fb67ba340cb4dc Mon Sep 17 00:00:00 2001 From: Young Date: Wed, 16 Jun 2021 14:10:51 +0000 Subject: [PATCH] fix ModelUpdater --- qlib/workflow/online/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qlib/workflow/online/update.py b/qlib/workflow/online/update.py index 561f7e18a..96cbf4d65 100644 --- a/qlib/workflow/online/update.py +++ b/qlib/workflow/online/update.py @@ -136,7 +136,7 @@ class PredUpdater(RecordUpdater): # https://github.com/pytorch/pytorch/issues/16797 start_time = get_date_by_shift(self.last_end, 1, freq=self.freq) - if start_time >= self.to_date: + if start_time > self.to_date: self.logger.info( f"The prediction in {self.record.info['id']} are latest ({start_time}). No need to update to {self.to_date}." )