[英]Library sompy for implementing self-organizing maps
I have installed the library sompy, but when I import it I have the next error:我已经安装了库 sompy,但是当我导入它时,我遇到了下一个错误:
import sompy
ImportErrorTraceback (most recent call last)
<ipython-input-86-97d518356b3c> in <module>
----> 1 import sompy
/opt/conda/lib/python3.8/site-packages/sompy/__init__.py in <module>
1
----> 2 from sompy import SOM
ImportError: cannot import name 'SOM' from partially initialized module 'sompy' (most likely due to a circular import) (/opt/conda/lib/python3.8/site-packages/sompy/__init__.py)
This problem is explained here .这个问题在这里解释。 The solution is to install a newer version of sompy:解决方案是安装更新版本的 sompy:
pip3 install git+https://github.com/compmonks/SOMPY.git
There are also other, more up-to-date packages for SOMs available, for example minisom and susi .还有其他更新的 SOM 包可用,例如minisom和susi 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.