improved data structure
This commit is contained in:
@@ -38,8 +38,12 @@ class StandardizedDataProvider(DataProvider):
|
||||
self.standardized_cob_data_cache: Dict[str, COBData] = {} # {symbol: COBData}
|
||||
|
||||
# Model output management with extensible storage
|
||||
cache_dir = getattr(self, 'cache_dir', None)
|
||||
if cache_dir is None:
|
||||
from pathlib import Path
|
||||
cache_dir = Path('cache')
|
||||
self.model_output_manager = ModelOutputManager(
|
||||
cache_dir=str(self.cache_dir / "model_outputs"),
|
||||
cache_dir=str(cache_dir / "model_outputs"),
|
||||
max_history=1000
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user