[English]
This example describes a hyper-plane in support vector machine for classification. This code was created with reference to the official documentation entitled "Support Vector Machines for Binary Classification" as shown below.
(https://jp.mathworks.com/help/stats/support-vector-machines-for-binary-classification.html?lang=en)
While the officilal document denotes how to show the decision boundary in a 2D space, this example represents how to describe the hype-plane in a 3D space.
[Japanese]
サポートベクターマシン(SVM)にて分類を行ったときの分離境界面の3D上での可視化を行います。
変数が4つ以上になるとxyz平面での可視化はできません。
例えばカーネルの種類を変えると境界面がどのように変わるのかを視覚的に確認でき、有効です。
引用
Kenta (2024). Visualizing a hyper-plane in SVM classifier(SVMの分離境界面の可視化) (https://www.mathworks.com/matlabcentral/fileexchange/74442-visualizing-a-hyper-plane-in-svm-classifier-svm), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxタグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!