Change Support Vector Machine model without false positive

Hi,
We are working on a project with a dataset with EEG data, with 44 extracted features. For clinical relevance, it is necessary to adjust the model with 100% specificity. We are wondering how to adjust the SVM-model, so the false positives are equal to zero. The specificity needs to be enhanced at the expense of the sensitivity. Anyone who can help?
load('data_workspace')
%% load
pred = data12_num(1:end,2:45);
resp = data12_num(1:end,1);
resp = logical(resp);
%% SVM
mdlSVM = fitcsvm(pred,resp,'Standardize',true);
mdlSVM = fitPosterior(mdlSVM);
[~,score_svm] = resubPredict(mdlSVM);
[Xsvm,Ysvm,Tsvm,AUCsvm,OPTROCPT] = perfcurve(resp,score_svm(:,mdlSVM.ClassNames),'true');
%% Plot
plot(Xsvm,Ysvm)
xlabel('False positive rate'); ylabel('True positive rate');
title('ROC Curve for SVM Classification')
AUCsvm % determine the Area Under the Curve

Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by