成功解决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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 成功解决bs4\__init__.py:
- 下一篇: CV之face_recognition: