python 2.7 - ImportError: No module named bitarray -


i trying implement fuzzy c means algorithm in python..i have used builtin function same in matlab.i know whether there such simple method in python also.i tried

http://peach.googlecode.com/hg/doc/build/html/tutorial/fuzzy-c-means.html

i have tried :

from numpy import * import peach p      x = array( [         [ 0., 0. ], [ 0., 1. ], [ 0., 2. ], [ 1., 0. ], [ 1., 1. ], [ 1., 2. ],         [ 2., 0. ], [ 2., 1. ], [ 2., 2. ], [ 5., 5. ], [ 5., 6. ], [ 5., 7. ],         [ 6., 5. ], [ 6., 6. ], [ 6., 7. ], [ 7., 5. ], [ 7., 6. ], [ 7., 7. ] ] )      mu = array( [         [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.7, 0.3 ],         [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.7, 0.3 ], [ 0.3, 0.7 ],         [ 0.3, 0.7 ], [ 0.3, 0.7 ], [ 0.3, 0.7 ], [ 0.3, 0.7 ], [ 0.3, 0.7 ],         [ 0.3, 0.7 ], [ 0.3, 0.7 ], [ 0.3, 0.7 ] ] )       m = 2.0      fcm = p.fuzzycmeans(x, mu, m)      print "after 20 iterations, algorithm converged centers:"     print fcm(emax=0)     print "the membership values examples given below:"     print fcm.mu 

but getting * importerror: no module named bitarray *

can help?

sometimes because in installed folder of package not import it. try go somewhere else , rerun it.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -