VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 11
声望: 3

采用“遗传算法优化”时,报了错,哪位大神帮忙看看

Traceback (most recent call last):
File "C:\veighna_studio\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\veighna_studio\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\veighna_studio\lib\site-packages\vnpy_ctabacktester\engine.py", line 305, in run_optimization
self.result_values = engine.run_ga_optimization(
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\backtesting.py", line 564, in run_ga_optimization
results: list = run_ga_optimization(
File "C:\veighna_studio\lib\site-packages\vnpy\trader\optimize.py", line 136, in run_ga_optimization
settings: List[Tuple] = [list(d.items()) for d in buf]
File "C:\veighna_studio\lib\site-packages\vnpy\trader\optimize.py", line 136, in <listcomp>
settings: List[Tuple] = [list(d.items()) for d in buf]
MemoryError

LLM学员
avatar
加入于:
帖子: 1538
声望: 111

内存不足爆了,升级下配置或者减少优化加载的数据时间跨度吧

Member
avatar
加入于:
帖子: 11
声望: 3

感谢感谢!

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】