subicwang / hog-svm-classifer Goto Github PK
View Code? Open in Web Editor NEWFor the CIFAR-10 dataset, extracting HOG features and using SVM classifier to classify them, at last, we get the accuracy.
For the CIFAR-10 dataset, extracting HOG features and using SVM classifier to classify them, at last, we get the accuracy.
I use the python3. I meet a issues when load the data. Is there any solution to the mistake? The details are as follow:
"Traceback (most recent call last):
File "E:/python/svm/extractFeat.py", line 72, in
TrainData, TestData = getData(filePath)
File "E:/python/svm/extractFeat.py", line 32, in getData
train = np.reshape(data['data'], (10000, 3, 32 * 32))
KeyError: 'data'"
学姐宁好~
我运行时for feat_path in glob.glob(os.path.join(train_feat_path, '*.feat')):这句总是报错,显示NameError: name 'train_feat_path' is not defined,但是我按百度说的解决方案试了还是不可以,宁能给我讲讲这是因为什么原因嘛,谢谢学姐
还有个提示:D:\Anaconda3\lib\site-packages\sklearn\externals\joblib_init_.py:15: DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
warnings.warn(msg, category=DeprecationWarning)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.