How to Plot Decision Boundary for SVM

14 ビュー (過去 30 日間)
Kamyar Mazarei
Kamyar Mazarei 2021 年 10 月 13 日
コメント済み: Kamyar Mazarei 2021 年 10 月 17 日
Hi,
after i make my model using 'fitcsvm' and predict the test data, id like to know the boundary and plot it
i cant find anything inside the model variable (1x1 ClassificationSVM) but i cant find anything thats like points so i can plot the line
heres the code i use if needed:
model=fitcsvm(trainD',trainL','Standardize',1);
trainD is 2x200 (100 for each class and 2 features)
ALSO
for some reason i dont understand, using linear svm gives me 100% accuracy while non lienar gives me about 75% (test data is too little 12 sample each)
  1 件のコメント
Kamyar Mazarei
Kamyar Mazarei 2021 年 10 月 17 日
bump

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by