问答交流

【代码报错】字体问题?

由chenfeng8638创建,最终由hxgre 被浏览 17 用户

  • [2025-02-10 21:25:32] INFO: 00:00:01.9761321: Finished iteration 3

  • [2025-02-10 21:25:32] INFO: 00:00:02.0238071: Finished iteration 4

  • [2025-02-10 21:25:32] INFO: 00:00:02.1089446: Finished iteration 5

  • 您可以去社区论坛问答交流板块反馈咨询 去发帖>> --------------------------------------------------------------------------- ErrorReturnCode_84 Traceback (most recent call last) Cell In[1], line 457 443 m4 = M.extract_data_dai.v18( 444 sql=m1.data, 445 start_date="""2023-01-01""", (...) 453 m_name="""m4""" 454 ) 456 # @module(position="-73,159", comment="""模型训练""") --> 457 m5 = M.stockranker.v9( 458 train_data=m3.data, 459 predict_data=m4.data, 460 learning_algorithm="""排序""", 461 number_of_leaves=30, 462 min_docs_per_leaf=1000, 463 number_of_trees=20, 464 learning_rate=0.1, 465 max_bins=1023, 466 feature_fraction=1, 467 data_row_fraction=1, 468 sort_by="""date,instrument""", 469 plot_charts=True, 470 ndcg_discount_base=1, 471 m_name="""m5""" 472 ) 474 # @module(position="97,270", comment="""交易,日线,设置初始化函数和K线处理函数,以及初始化资金、基准等""") 475 m7 = M.bigtrader.v37( 476 data=m5.predictions, 477 start_date="""""", (...) 501 m_name="""m7""" 502 ) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/modules.py:28, in call(self, **kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:203, in module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:169, in _module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:41, in _module_run(module, kwargs) File dist/build/stockranker/v9/init.py:86, in v9.run() File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/modules.py:28, in call(self, **kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:203, in module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:169, in _module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:41, in _module_run(module, kwargs) File dist/build/python/v1/init.py:54, in v1.run() File dist/build/stockranker/v9/utils.py:1075, in v9.utils.train() File dist/build/stockranker/v9/utils.py:979, in v9.utils.train._train() File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py:882, in RunningCommand.next(self) 880 else: 881 if chunk is None: --> 882 self.wait() 883 self._stopped_iteration = True 884 raise StopIteration() File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py:799, in RunningCommand.wait(self, timeout) 796 raise TimeoutException(-exit_code, self.ran) 798 else: --> 799 self.handle_command_exit_code(exit_code) 801 # if an iterable command is using an instance of OProc for its stdin, 802 # wait on it. the process is probably set to "piped", which means it 803 # won't be waited on, which means exceptions won't propagate up to the 804 # main thread. this allows them to bubble up 805 if self.process._stdin_process: File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/sh.py:826, in RunningCommand.handle_command_exit_code(self, code) 822 if exc_class: 823 exc = exc_class( 824 self.ran, self.process.stdout, self.process.stderr, ca["truncate_exc"] 825 ) --> 826 raise exc ErrorReturnCode_84: RAN: /usr/local/bin/wine StockRanker.exe /ini /tmp/7530f3b9a6d04803a9c9edddfd72a4b9/features.ini /tr /tmp/7530f3b9a6d04803a9c9edddfd72a4b9/training.bin /h /tmp/7530f3b9a6d04803a9c9edddfd72a4b9/ranker.ini /l 30 /d 1000 /w 20 /c 0.1 /r2 123 /ps 30 /t 1 /ap lambdarank /topn 10 /bdp 0.2 /ms 'C:\stockranker\MetaStreamDefinitionList.ini' /shiftedNDCG /cf w /dw /nl /ff 1 /sf 1 /vfrac 0 /mb 1025 /gcfe 1 /fcomp 1 /ndcgdiscountbase 1 /ExperimentID 7530f3b9a6d04803a9c9edddfd72a4b9 /Owner null /graph /graphtv /fg /gains 0:1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19 /sfrac 0.0 STDOUT: achine count = 1, degenerate to single version. ost = STUDIO-63825408

    ...

    ==Wine cannot find the FreeType font library. To enable Wine to use TrueType fonts please install a version of FreeType greater than or equal to 2.0.5.== ==http://www.freetype.org== We cannot perform more splits with gain = -�� We cannot perform more splits with gain = -�� We cannot perform more splits with gain = -�� We cannot perform more splits with gain = -�� We cannot perform more splits with gain = -�� Unhandled exception. System.InvalidC... (1688 more, please see e.stderr)

    Output is truncated. View as a open in a text editor. Adjust cell output settings...

24681012141618200.050.060.070.080.090.10.110.120.13

StocRanker Training MetricsIterationTime(s)

\n

评论
  • 把代码发出来看下呢
{link}