日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

成功解决gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int

發布時間:2025/3/21 48 豆豆
生活随笔 收集整理的這篇文章主要介紹了 成功解决gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

成功解決gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int

?

?

目錄

解決問題

解決思路

解決方法


?

?

?

解決問題

gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int` to `np.signedinteger` is deprecated. In future, it will be treated as `np.int32 == np.dtype(int).type`.
? if np.issubdtype(vec.dtype, np.int):

?

解決思路

gensim \ matutils ? 版本升級警告:issubdtype 的第二個參數從“int”轉換為“np.signedinteger”是棄用。
將來,它將被視為' np.int32 == np.dtype(int).type '。如果np.issubdtype (vec)。dtype np.int):

?

解決方法

此信息提示為警告,而不是error,即使不處理也不會影響代碼編程的運行。如果想要去掉,可以更新庫至最新版本!
然后根據提示修改使用方法!
根據提示,可知該方法的類型發生改變,即np.int32 == np.dtype(int).type,修改即可!

總結

以上是生活随笔為你收集整理的成功解决gensim\matutils.py:737: FutureWarning: Conversion of the second argument of issubdtype from `int的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。