SVM Visualization in MATLAB

前端 未结 4 1336
甜味超标
甜味超标 2021-01-05 01:58

How do I visualize the SVM classification once I perform SVM training in Matlab?

So far, I have only trained the SVM with:

% Labels are -1 or 1
groun         


        
4条回答
  •  悲哀的现实
    2021-01-05 02:11

    Assuming your data has more than two dimensions, you can perform a PCA, project the data to 2D, then assign them a color according to the output of your svm classifier (e.g., red for class A, blue for class B). This is quick to do and you will see if there is anything to visualize. However, data with a high dimensionality are not likely to be easily visualizable in 2D.

提交回复
热议问题