SOMPY
SOMPY copied to clipboard
can not import SOM
I am using Python 3.5.1 with PyCharm IDE on Windows. I am getting below error:
can you please help me?
C:\Python35\python.exe C:/Users/azzet/PycharmProjects/PythonSom.py
Traceback (most recent call last):
File "C:/Users/azzet/PycharmProjects/PythonSom.py", line 4, in
Process finished with exit code 1
I have exactly the same issue
Me too
Sorry, not tested with Py3. with Py2.7 it should work.
Is there any solution for this issue right now?
@compmonks did you have a solution for this? If I remember correctly you used it in py3? Thanks
Sompy would not work when loaded as a package for py 3+ for dependencies and syntax reasons. @azize @sevamoo , I should have pushed a version for this. Let me know if it works.
I had the same problem and the SOMPY version forked by @compmonks worked for me:
pip3 install git+https://github.com/compmonks/SOMPY.git
I only had to remove ipdb import from sompy.py and mapview.py because due to other dependencies I had installed the ipdb import was opening a prompt in my setup. Thank you @compmonks for the fork!
Have the same issue, but problem appers in my case also in python 2.7. Is there already a solution?
I have exactly the same issue
Same issue. It’s because of ipdb module.Afrer I commented them out in sompy.py and mapview.py, it worked. It’s just debugger
Hi, I have the same issue. @nomad-jin What exactly did you comment out? what is 'ipdb'?
@pricklpitty - ipdb is a module which gives access the IPython debugger (https://pypi.python.org/pypi/ipdb).
Besides import ipdb
in sompy.py and mapview.py there are no other references to that module in the code so it was probably left accidentally after a debugging session...
how could i save the model , and predict the cluster of new data , like kmeans in sklearn "model.predict(new_data)"?????????
Did anyone found the solution for this open issue?
for me I installed SOMPY using the setup source, this fixed my bug last year. That longtime I've used it.
git clone https://github.com/sevamoo/SOMPY.git cd SOMPY python setup.py install
This fixed my issue
I get
Traceback (most recent call last):
File "D:\Projects\AI\SOM\data\sompy_clustering.py", line 3, in
Getting the package from GIT does NOT fix the issue. I have Python 3.10.5