vn.py量化社区
By Traders, For Traders.
Member
avatar
加入于:
帖子: 5
声望: 0

回测时报这个错误是怎么回事:
Traceback (most recent call last):
File "F:\项目文件\vnpy_single_jqdata\ctabacktester_plus\ui\widget_plus.py", line 284, in process_backtesting_finished_event
self.chart.set_data(df)
File "F:\项目文件\vnpy_single_jqdata\ctabacktester_plus\ui\widget_plus.py", line 780, in set_data
hist, x = np.histogram(df["net_pnl"], bins="auto")
File "<__array_function__ internals>", line 6, in histogram
File "E:\vnstudio_2.1.4\lib\site-packages\numpy\lib\histograms.py", line 792, in histogram
bin_edges, uniform_bins = _get_bin_edges(a, bins, range, weights)
File "E:\vnstudio_2.1.4\lib\site-packages\numpy\lib\histograms.py", line 448, in _get_bin_edges
endpoint=True, dtype=bin_type)
File "<__array_function__ internals>", line 6, in linspace
File "E:\vnstudio_2.1.4\lib\site-packages\numpy\core\function_base.py", line 128, in linspace
y = _nx.arange(0, num, dtype=dt).reshape((-1,) + (1,) * ndim(delta))
ValueError: Maximum allowed size exceeded

Member
avatar
加入于:
帖子: 526
声望: 24

可参考https://www.vnpy.com/forum/topic/2689-hui-ce-chu-cuo-liao

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