简体   繁体   English

用于实现自组织地图的库 sompy

[英]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 包可用,例如minisomsusi

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在python中可视化自组织映射 - Visualizing self-organizing maps in python Python中的六边形自组织映射 - Hexagonal Self-Organizing map in Python 可视化自组织地图或虹膜数据集中的类标签 - Visualizing class labels in self-organizing map plot or iris dataset Java,C,Python等自组织模糊神经网络(SOFNN)实现 - Self-organizing Fuzzy Neural Network (SOFNN) Implementations in Java, C, Python etc 我如何知道一个元素在python中属于哪个自组织映射(SOM)集群? - How can I know which cluster of self-organizing map (SOM) an element belongs to in python? 运行不断增长的自组织图(GSOM)GitHub 实现失败,出现 AttributeError:“numpy.ndarray”对象没有属性“iteritems” - Running Growing Self-Organizing Map(GSOM) GitHub Implementation failed with AttributeError: 'numpy.ndarray' object has no attribute 'iteritems' 如何使用SOMPY库在SOM中标记数据? - How to label data in SOM using SOMPY library? 如何获得 SOM(自组织地图)中的重要特征? - How to get the important features in SOM(Self Organizing Maps)? 如何通过python绘制带有邻域连接的自组织地图? - How can I plot self organizing maps with neighborhood connections through python? 如何使用 Elbow 方法为自组织地图“SOM”获得最佳 K? - How to get the best K for self organizing maps "SOM" using Elbow method?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM