MCPcopy
hub / github.com/microsoft/qlib / update

Method update

qlib/data/cache.py:447–463  ·  view source on GitHub ↗

Update dataset cache to latest calendar. Override this method to define how to update dataset cache corresponding to users' own cache mechanism. Parameters ---------- cache_uri : str or Path the complete uri of dataset cache file (include dir path).

(self, cache_uri: Union[str, Path], freq: str = "day")

Source from the content-addressed store, hash-verified

445 )
446
447 def update(self, cache_uri: Union[str, Path], freq: str = "day"):
448 """Update dataset cache to latest calendar.
449
450 Override this method to define how to update dataset cache corresponding to users' own cache mechanism.
451
452 Parameters
453 ----------
454 cache_uri : str or Path
455 the complete uri of dataset cache file (include dir path).
456 freq : str
457
458 Returns
459 -------
460 int
461 0(successful update)/ 1(no need to update)/ 2(update failure)
462 """
463 raise NotImplementedError("Implement this method if you want to make expression cache up to date")
464
465 @staticmethod
466 def cache_to_origin_data(data, fields):

Callers 5

__setstate__Method · 0.45
reset_level_infraMethod · 0.45
reset_common_infraMethod · 0.45
backend_objMethod · 0.45
downloadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected