问答交流

模型一跑就挂,改了好多版本了,求管理员看看

由bqwnoqw7创建,最终由bqwnoqw7 被浏览 4 用户

报错信息:\n--------------------------------------------------------------------------- ErrorReturnCode_255 Traceback (most recent call last) Cell In[5], line 261 248 m4 = M.extract_data_dai.v20( 249 sql=m1.data, 250 start_date="""2023-02-01""", (...) 257 m_name="""m4""", 258 ) 260 # ── m5: 模型训练 ───────────────────────────── --> 261 m5 = M.stockranker.v9( 262 train_data=m3.data, 263 predict_data=m4.data, 264 learning_algorithm="""排序""", 265 number_of_leaves=31, 266 min_docs_per_leaf=500, 267 number_of_trees=100, 268 learning_rate=0.03, 269 max_bins=255, 270 feature_fraction=0.7, 271 data_row_fraction=0.7, 272 sort_by="""date,instrument""", 273 plot_charts=True, 274 ndcg_discount_base=1, 275 m_name="""m5""", 276 ) 278 # ── m6: 仓位分配 ───────────────────────────── 279 # 25只等权,总仓位85% 280 # ────────────────────────────────────────────── 281 m6 = M.score_to_position.v5( 282 input_1=m5.predictions, 283 score_field="""score DESC""", (...) 288 m_name="""m6""", 289 ) 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:218, in module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:181, in _module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:44, 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:218, in module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:181, in _module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:44, 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_255: RAN: /usr/local/bin/wine StockRanker.exe /ini /tmp/fb4419cb9b7e42ee82bc90c9844c8558/features.ini /tr /tmp/fb4419cb9b7e42ee82bc90c9844c8558/training.bin /h /tmp/fb4419cb9b7e42ee82bc90c9844c8558/ranker.ini /l 31 /d 500 /w 100 /c 0.03 /r2 123 /ps 31 /t 4 /ap lambdarank /topn 10 /bdp 0.2 /ms 'C:\stockranker\MetaStreamDefinitionList.ini' /shiftedNDCG /cf w /dw /nl /ff 0.7 /sf 0.7 /vfrac 0 /mb 257 /gcfe 1 /fcomp 1 /ndcgdiscountbase 1 /ExperimentID fb4419cb9b7e42ee82bc90c9844c8558 /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:

  • ...

    002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\aiuser". 002c:err:shell:SHGetFolderPathAndSubDirW Failed to create directory L"C:\\users\\aiuser\\AppData\\Local". 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 build a tree with gain = -�� Error in training : Object reference not set to an instance of an object. StackTrace: at FastRank.LambdaRankObjectiveFunction.FastRank.IStepSearch.AdjustTreeOutputs(RegressionTree tree, DocumentPartitioning partitioning, Score... (340 more, please see e.stderr)

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

\

{link}