Comments (18)
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!
from sompy.
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
from sompy.
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.
from sompy.
I have exactly the same issue
from sompy.
Me too
from sompy.
Sorry, not tested with Py3. with Py2.7 it should work.
from sompy.
Is there any solution for this issue right now?
from sompy.
@compmonks did you have a solution for this? If I remember correctly you used it in py3?
Thanks
from sompy.
Have the same issue, but problem appers in my case also in python 2.7. Is there already a solution?
from sompy.
I have exactly the same issue
from sompy.
Hi, I have the same issue. @Nomad-Jin What exactly did you comment out? what is 'ipdb'?
from sompy.
@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...
from sompy.
how could i save the model , and predict the cluster of new data , like kmeans in sklearn "model.predict(new_data)"?????????
from sompy.
Did anyone found the solution for this open issue?
from sompy.
for me I installed SOMPY using the setup source, this fixed my bug last year. That longtime I've used it.
from sompy.
git clone https://github.com/sevamoo/SOMPY.git
cd SOMPY
python setup.py install
This fixed my issue
from sompy.
I get
Traceback (most recent call last):
File "D:\Projects\AI\SOM\data\sompy_clustering.py", line 3, in
import sompy as sompy
File "C:\Python\lib\site-packages\sompy_init_.py", line 2, in
from sompy import SOM
ImportError: cannot import name 'SOM' from partially initialized module 'sompy' (most likely due to a circular import) (C:\Python\lib\site-packages\sompy_init_.py)
Getting the package from GIT does NOT fix the issue. I have Python 3.10.5
from sompy.
I get
Traceback (most recent call last):
File "c:\Users\New\Desktop\clone\som\random_distributions.py", line 2, in
from som import simom
ImportError: cannot import name 'simom' from 'som' (C:\Program Files\Python312\Lib\s
ite-packages\som_init_.py)
PS C:\Users\New\Desktop\clone>
from sompy.
Related Issues (20)
- HitMapView cannot run successfully
- One-hot encoding with array
- component plane visualization
- Plot data label in UMatrix HOT 1
- SAMMON Map HOT 2
- Need apply PCA on my data?
- How many parameters in SOMPY?
- calculate_topographic_error bug HOT 1
- What is clustering routine ?? HOT 1
- setup.py error
- lenght error HOT 4
- Som Toolbox Input Missing Values HOT 1
- How can I use this package on google colab? HOT 5
- Real component issue HOT 1
- How to add more data to the trained som HOT 1
- w = som.winner(data[x]) HOT 1
- Distance between hexagon centers
- Get the Codebooks HOT 2
- Component Map View2D function error - California Housing example
- Cannot import name 'SOM' from partially initialized module 'sompy' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sompy.