Non-binary output possibility of one-class SVM classifier

3 Ansichten (letzte 30 Tage)
Adelante
Adelante am 27 Jul. 2018
Bearbeitet: Adelante am 27 Jul. 2018
I have a training set consisting of 10 20x20 grayscale images. I trained a one-class SVM by
SVMStruct = fitcsvm(trainData,class,'KernelFunction','rbf','Standardize',true,'Nu',1);
Now it perfectly works for classification by: [label,score] = predict(SVMStruct,inputImg)
where I get the score of -1 for each member out of class and 0 for training set and very similar images. However I need to see outputs as percentages of closeness or any results of real numbers instead of binary. Labels are not my concern. I investigated predict.m; but couldn't find any rounding operator.
Is there any way to extract the output values before final and binary classification without changing the parameters I mentioned above??
Thank you

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by