ludwig 当运行预测时出现[Errno 36]文件名过长异常

n3ipq98p  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(44)

我遇到了这个问题,但是不知道如何解决。请大家帮忙。

...
OSError                                   Traceback (most recent call last)
[<ipython-input-4-fc68552c3e50>](https://localhost:8080/#) in <cell line: 145>()
    143 )
    144 
--> 145 predictions, prediction_results = model.predict(dataset=eval_df, skip_save_predictions=False, output_directory="predictions")
    146 
    147 predictions.head()

9 frames
[/usr/local/lib/python3.10/dist-packages/fsspec/implementations/local.py](https://localhost:8080/#) in _open(self)
    318         if self.f is None or self.f.closed:
    319             if self.autocommit or "w" not in self.mode:
--> 320                 self.f = open(self.path, mode=self.mode)
    321                 if self.compression:
    322                     compress = compr[self.compression]

OSError: [Errno 36] File name too long: '/content/predictions/product_name_probabilities_Ống_thoát_nước__xifong__dùng_cho_chậu_rửa_trong_nhà_bếp___nắp_ống_bằng_inox__thân_ống_và_đường_ống_bằng_nhựa__lõi_ống_dẫn_bằng_thép__bộ_gồm_nắp_đậy__ống_dẫn__khớp_nối__hàng_mới_100.csv'
cwtwac6a

cwtwac6a1#

你好,@karamata!你能分享一下你用来生成预测的代码吗?看起来product_name_probabilities_Ống_thoát_nước__xifong__dùng_cho_chậu_rửa_trong_nhà_bếp___nắp_ống_bằng_inox__thân_ống_và_đường_ống_bằng_nhựa__lõi_ống_dẫn_bằng_thép__bộ_gồm_nắp_đậy__ống_dẫn__khớp_nối__hàng_mới_100.csv这个文件名太大了,而且错误不是来自Ludwig,而是来自主机机器,因为这是一个Errno 36错误。

v1uwarro

v1uwarro2#

你好,@karamata!你能分享一下你用来生成预测的代码吗?看起来product_name_probabilities_Ống_thoát_nước__xifong__dùng_cho_chậu_rửa_trong_nhà_bếp___nắp_ống_bằng_inox__thân_ống_và_đường_ống_bằng_nhựa__lõi_ống_dẫn_bằng_thép__bộ_gồm_nắp_đậy__ống_dẫn__khớp_nối__hàng_mới_100.csv这个文件名太大了,而且错误不是来自Ludwig,而是来自主机机器,因为这是一个Errno 36错误。

你好,@arnavgarg1,请查看我下面的代码库,这段代码我在colab上运行。

相关问题