필터 지우기
필터 지우기

Which output represent distance from hyperplane in fitcsvm while training data?

조회 수: 3 (최근 30일)
Nainsi Gupta
Nainsi Gupta 2024년 2월 20일
답변: Ayush Modi 2024년 2월 20일
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?

답변 (1개)

Ayush Modi
Ayush Modi 2024년 2월 20일
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:

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by