Clear Filters
Clear Filters

Output probabilities of binary support vector machine classifier

1 view (last 30 days)
Hi.
I’m using SVM for classification of my binary output problem. I want probability of belonging to every class. How can I obtain it? For instance suppose this is our structure:
X = [1 4 1 5 3 ; 4 5 4 3 1 ; 6 7 5 5 5];
%%(Every row is a sample and every column is a feature)
Y=[1 ; 0 ; 0 ; 1 ; 1];
After designing SVM model I want check an outsample data with it. For example:
Out_sample_data = [3 3 4 0 3 ; 7 5 7 1 2 ; 6 7 3 3 4];
Besides out sample data classes, I want find probability of belonging to every class. How can I do this with MATLAB R2014a ?
Thanks.

Answers (0)

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!