how to use histogram values in svm classifier

조회 수: 1 (최근 30일)
diviya Subramanian
diviya Subramanian 2016년 2월 25일
답변: Ayush 2024년 10월 21일
generated histogram values but need matlab code to use this in svm classifier

답변 (1개)

Ayush
Ayush 2024년 10월 21일
Hi,
Once you have computed the histogram features, you can make use of the “fitcsvm” function to pass the histogram features in the function in order to train the SVM classifier. Refer to an example use of the “fitcsvm” function:
labels = [1, -1, 1, -1]; % Example labels
SVMModel = fitcsvm(histFeatures, labels, 'KernelFunction', 'linear');
After the model is trained you can use the “predict” function to predict new data.
For more information on the “fitcsvm” function and “predict" function, refer to the below documentation:

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by