Which output represent distance from hyperplane in fitcsvm while training data?
    2 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
While training data on fitcsvm, which output represent distance from the hyoerplane. Please explain. 
x= rand([100,2])
y= ones(100,1)
mdl= fitcsvm(x,y)
mdl.BoxConstraints
[~,score]= predict(mdl,x)
Is it correct? Does score term represent the distance of training data from the hyperplane?
0 Commenti
Risposte (1)
  Ayush Modi
      
 il 20 Feb 2024
        Hi Nainsi,
The score output from "predict" function is the signed distance to the decision boundary. I am assuming by hyperplane, you mean decision boundary, so the answer would be yes.
Please refer to the following MathWorks documentation for more information on the score output of “predict” function:
0 Commenti
Vedere anche
Categorie
				Scopri di più su Classification in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

