svm classification error in simplecv -
i can't able run svm classification in simplecv program. program given below:
from simplecv import * hhfe=huehistogramfeatureextractor() ehfe=edgehistogramfeatureextractor() haarfe=haarlikefeatureextractor() extractors=[hhfe,ehfe,haarfe] svm=svmclassifier(extractors) tree=treeclassifier(extractors) trainpaths=['./data/train/apple/','./data/train/banana/','./data/train/pineapple/'] testpaths=['./data/test/apple/','./data/test/banana/','./data/test/pineapple/'] classes=['apple','banana','pineapple'] print svm.train(trainpaths,classes,verbose=true) print tree.train(trainpaths,classes,verbose=true) print svm.test(testpaths,classes,verbose=true) print tree.test(testpaths,classes,verbose=true)
error as:
warning: required orange machine learning library not installed warning: i'm sorry, need orange machine learning library installed use opening file: ./data/train/apple/a19.jpg error: traceback (most recent call last): file "chithapa.py", line 11, in <module> print svm.train(trainpaths,classes,verbose=true) file "/home/surya/simplecv/simplecv/machinelearning/svmclassifier.py", line 257, in train count = count + self._trainpath(images[i],classnames[i],subset,disp,verbose) file "/home/surya/simplecv/simplecv/machinelearning/svmclassifier.py", line 184, in _trainpath extractor in self.mfeatureextractors: typeerror: 'nonetype' object not iterable
i tried install orange,using pip install orange command display error.
Comments
Post a Comment