Open vferman opened 6 years ago
change the "som = sompy.SOMFactory.build(data, mapsize, ..." TO "som = sompy.SOMFactory.build(data.values, mapsize,..."
I think this now works!
I believe this is related to https://github.com/sevamoo/SOMPY/issues/20.
It seems that if the training data is a pandas matrix (or Python array), many functions will throw this exception. However, if you convert to a numpy matrix (which is what .values gives you), it will work.
Sincerely, Robert
Hey, I'm not quite sure why it is trowing this error... Can anyone help?
The imported file is a 800 by 750 matrix (or something similar)
My code:
I get the following: